fix(MessageComponent): emoji.name is not optional#179
fix(MessageComponent): emoji.name is not optional#179Dougley wants to merge 1 commit intodiscordjs:mainfrom
Conversation
|
We've tested it, and it's optional for custom emojis. Unless that changed recently.. I don't think this is valid 👀 |
|
Interesting, the docs seem to suggest it's required due to being supplied in all the examples and the docs stating it's only null for reactions. Incoming interactions will always have this field filled however, so ¯\_(ツ)_/¯ |
|
Oh, greatttt... its a send/receive difference... Can you change the one in POST then to be the Partial of the interface you modified? |
|
Since components are part of action rows it's impossible to just |
|
Hmm... yeah for REST you'd have to change it entirely... :notlikethis:... In your code you can just slap a |
Please describe the changes this PR makes and why it should be merged:
[APIMessageComponentEmoji].nameis always required.Reference Discord API Docs PRs or commits:
https://discord.com/developers/docs/resources/emoji#emoji-object-emoji-structure