I'm having a problem when I add.setMinValues(2).setMaxValues(3)it starts giving this error

I'm having a problem when I add .setMinValues(2) .setMaxValues(3) it starts giving this error
No description
13 Replies
d.js toolkit
d.js toolkit12mo 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! - Marked as resolved by staff
ayman
ayman12mo ago
You’re setting it to minimum 2 options but there’s only one avaible
Joãozinho
JoãozinhoOP12mo ago
No description
Joãozinho
JoãozinhoOP12mo ago
even so it wasn't @ayman
treble/luna
treble/luna12mo ago
You have 2 options there or wait Did you save your code
Joãozinho
JoãozinhoOP12mo ago
I put the set max value 2 there, but I want to be able to set it to a maximum of 24
treble/luna
treble/luna12mo ago
also the setMaxValues can also cause this
Joãozinho
JoãozinhoOP12mo ago
Is there any way I can get it to select everyone? what to have?
treble/luna
treble/luna12mo ago
Then you have to provide 24 options wdym select everyone
ayman
ayman12mo ago
You only have 2 values but you set max to 3
SpecialSauce
SpecialSauce12mo ago
Just set the max values to the length of your options.
ayman
ayman12mo ago
Or just don’t use .setMaxValues
SpecialSauce
SpecialSauce12mo ago
True
Want results from more Discord servers?
Add your server