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

(#3759) Bug Closed: Fixed api embeds

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"}]}

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.

Build information

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

Platform

API

  1. Jackuczys changed the status from Awaiting confirmation to Fixed
  1. The pull request fluxer#3896 mentions this post Merged

2 comments

Sign in with Fluxer to comment and vote.
Comment by Rex
RexSystem 1 vote
Status changed from Needs triage to Awaiting confirmation
This should be fixed now. Could you check and tell us if it still happens?