NOXY1337
NOXY1337
DIAdiscord.js - Imagine an app
Created by NOXY1337 on 8/20/2023 in #djs-questions
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)
);
12 replies