use setEmoji to set no emoji/ remove an emoji from a button
I normally use setEmoji({name: undefined}) when I want to not have an emoji on a button, generally for dynamic button creation. But this stopped working, and started throwing an error
.setEmoji({name: undefined})
.setEmoji({name: undefined})
*this is what I have previously used up to now
error: DiscordAPIError[50035]: Invalid Form Body data.components[0].components[1].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
error: DiscordAPIError[50035]: Invalid Form Body data.components[0].components[1].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
unsure of why this stopped working, I also tried
.setEmoji()
.setEmoji()
error: ValidationError > s.object(T) Expected the value to be an object, but received undefined instead Received: | undefined
error: ValidationError > s.object(T) Expected the value to be an object, but received undefined instead Received: | undefined
.setEmoji(null)
.setEmoji(null)
error: ValidationError > s.object(T) Expected the value to not be null Received: | null
error: ValidationError > s.object(T) Expected the value to not be null Received: | null
.setEmoji({})
.setEmoji({})
error: DiscordAPIError[50035]: Invalid Form Body data.components[0].components[1].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
error: DiscordAPIError[50035]: Invalid Form Body data.components[0].components[1].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
I've looked on the docs and searched here and people are suggestion different variations of what I listed above, but it none of them seem to work anymore.