BASE_TYPE_MIN_LENGTH

Hey 👋 , I'm getting the following error from the following code, any ideas?
const select3 = new StringSelectMenuBuilder()
.setCustomId('select3')
.setPlaceholder('Set the commands to log in the channel.')
.setMinValues(0)
.setMaxValues(25)
.addOptions(
new StringSelectMenuOptionBuilder()
.setLabel('User Bans')
.setValue('userbans')
.setDefault(guildData.logging.actions.userBans ? true : false),
new StringSelectMenuOptionBuilder()
.setLabel('User Kicks')
.setValue('userkicks')
.setDefault(guildData.logging.actions.userKicks ? true : false),
new StringSelectMenuOptionBuilder()
.setLabel('Guild Roles')
.setValue('guildroles')
.setDefault(guildData.logging.actions.guildRoles ? true : false)
);
const select3 = new StringSelectMenuBuilder()
.setCustomId('select3')
.setPlaceholder('Set the commands to log in the channel.')
.setMinValues(0)
.setMaxValues(25)
.addOptions(
new StringSelectMenuOptionBuilder()
.setLabel('User Bans')
.setValue('userbans')
.setDefault(guildData.logging.actions.userBans ? true : false),
new StringSelectMenuOptionBuilder()
.setLabel('User Kicks')
.setValue('userkicks')
.setDefault(guildData.logging.actions.userKicks ? true : false),
new StringSelectMenuOptionBuilder()
.setLabel('Guild Roles')
.setValue('guildroles')
.setDefault(guildData.logging.actions.guildRoles ? true : false)
);
3 Replies
d.js toolkit
d.js toolkit2y ago
- 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!
Squid
Squid2y ago
You shouldn't set the select menu's max values to a number grater than the amount of options in the select menu Your max values can be a number between 1 and 3 inclusively, only
pie
pieOP2y ago
ahh ok, ty
Want results from more Discord servers?
Add your server