DiscordAPIError[50035]: Invalid Form Body
const menu = new ActionRowBuilder<StringSelectMenuBuilder>().addComponents(
new StringSelectMenuBuilder()
.setCustomId('ranks-menu')
.setPlaceholder('No ranks selected...')
.addOptions(
{
label: 'Unranked',
value: Rank.unranked,
emoji: { name: Rank.unranked }
},
{
label: 'Iron',
value: Rank.iron,
emoji: { name: Rank.iron }
},
{
label: 'Bronze',
value: Rank.bronze,
emoji: { name: Rank.bronze }
},
{
label: 'Silver',
value: Rank.silver,
emoji: { name: Rank.silver }
},
{
label: 'Gold',
value: Rank.gold,
emoji: { name: Rank.gold }
},
{
label: 'Platinum',
value: Rank.platinum,
emoji: { name: Rank.platinum }
},
{
label: 'Diamond',
value: Rank.diamond,
emoji: { name: Rank.diamond }
},
{
label: 'Ascendant',
value: Rank.ascendant,
emoji: { name: Rank.ascendant }
},
{
label: 'Immortal',
value: Rank.immortal,
emoji: { name: Rank.immortal }
},
{
label: 'Radiant',
value: Rank.radiant,
emoji: { name: Rank.radiant }
}
)
.setMinValues(1)
.setMaxValues(3)
);
const menu = new ActionRowBuilder<StringSelectMenuBuilder>().addComponents(
new StringSelectMenuBuilder()
.setCustomId('ranks-menu')
.setPlaceholder('No ranks selected...')
.addOptions(
{
label: 'Unranked',
value: Rank.unranked,
emoji: { name: Rank.unranked }
},
{
label: 'Iron',
value: Rank.iron,
emoji: { name: Rank.iron }
},
{
label: 'Bronze',
value: Rank.bronze,
emoji: { name: Rank.bronze }
},
{
label: 'Silver',
value: Rank.silver,
emoji: { name: Rank.silver }
},
{
label: 'Gold',
value: Rank.gold,
emoji: { name: Rank.gold }
},
{
label: 'Platinum',
value: Rank.platinum,
emoji: { name: Rank.platinum }
},
{
label: 'Diamond',
value: Rank.diamond,
emoji: { name: Rank.diamond }
},
{
label: 'Ascendant',
value: Rank.ascendant,
emoji: { name: Rank.ascendant }
},
{
label: 'Immortal',
value: Rank.immortal,
emoji: { name: Rank.immortal }
},
{
label: 'Radiant',
value: Rank.radiant,
emoji: { name: Rank.radiant }
}
)
.setMinValues(1)
.setMaxValues(3)
);
2 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!DiscordAPIError[50035]: Invalid Form Body
components[0].components[0].options[0].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
components[0].components[0].options[1].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
components[0].components[0].options[2].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
components[0].components[0].options[3].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
components[0].components[0].options[4].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
components[0].components[0].options[5].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
components[0].components[0].options[6].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
components[0].components[0].options[7].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
components[0].components[0].options[8].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
components[0].components[0].options[9].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
DiscordAPIError[50035]: Invalid Form Body
components[0].components[0].options[0].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
components[0].components[0].options[1].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
components[0].components[0].options[2].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
components[0].components[0].options[3].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
components[0].components[0].options[4].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
components[0].components[0].options[5].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
components[0].components[0].options[6].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
components[0].components[0].options[7].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
components[0].components[0].options[8].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
components[0].components[0].options[9].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
ranks: {
unranked: ':Unranked:',
iron: ':Iron:',
bronze: ':Bronze:',
silver: ':Silver:',
gold: ':Gold:',
platinum: ':Platinum:',
diamond: ':Diamond:',
ascendant: ':Ascendant:',
immortal: ':Immortal:',
radiant: ':Radiant:'
},
ranks: {
unranked: ':Unranked:',
iron: ':Iron:',
bronze: ':Bronze:',
silver: ':Silver:',
gold: ':Gold:',
platinum: ':Platinum:',
diamond: ':Diamond:',
ascendant: ':Ascendant:',
immortal: ':Immortal:',
radiant: ':Radiant:'
},
{
label: 'Unranked',
value: Rank.unranked,
emoji: { name: Rank.unranked, id: EmojiId.unranked }
},
{
label: 'Iron',
value: Rank.iron,
emoji: { name: Rank.iron, id: EmojiId.iron }
},
{
label: 'Bronze',
value: Rank.bronze,
emoji: { name: Rank.bronze, id: EmojiId.bronze }
},
{
label: 'Unranked',
value: Rank.unranked,
emoji: { name: Rank.unranked, id: EmojiId.unranked }
},
{
label: 'Iron',
value: Rank.iron,
emoji: { name: Rank.iron, id: EmojiId.iron }
},
{
label: 'Bronze',
value: Rank.bronze,
emoji: { name: Rank.bronze, id: EmojiId.bronze }
},
ranks: {
unranked: 'Unranked',
iron: 'Iron',
bronze: 'Bronze',
},
ids: {
unranked: '1142947486873440448',
iron: '1142946495155421197',
bronze: '1142946504915558530',
},
ranks: {
unranked: 'Unranked',
iron: 'Iron',
bronze: 'Bronze',
},
ids: {
unranked: '1142947486873440448',
iron: '1142946495155421197',
bronze: '1142946504915558530',
},
DiscordAPIError[50035]: Invalid Form Body
components[0].components[0].options[1].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
components[0].components[0].options[2].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
DiscordAPIError[50035]: Invalid Form Body
components[0].components[0].options[1].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
components[0].components[0].options[2].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji