Discord API incompatibility - setting embed author's name to empty string returns 400

(#3759) Bug Needs triage api embeds

Observed behaviour

I tried to send a message with an embed object that contained an author field whose name happened to be empty. While on Discord this works fine (results in there being no embed author in the created message) and is the behavior I expected, Fluxer instead simply rejects the entire request with the 400 error code.

Reproduction steps

  1. Make a request with the following payload to the POST /channels/{channel.id}/messages endpoint:
    {"embeds":[{"author":{"name":""},"description":"text"}]}
  2. See the issue:
    HTTP/1.1 400 Bad Request
    [headers...]
    
    {"code":"INVALID_FORM_BODY","message":"Invalid form body.","errors":[{"path":"message_data","message":"Invalid message data.","code":"INVALID_MESSAGE_DATA"}]}

Build information

N/A - this is about the API (official fluxer.com instance).

Platform

API

Comments

Sign in with Fluxer to comment and vote.

No comments yet.