Issue with Select Menu

Hello, I'm new with select menus, I tried them today but the bot isn't responding to them. The console does not get an error and it should return an error if it fails Code: https://sourceb.in/U5zQWScCWS Select menu part starts in like 166 and no, I'm not using a channel collector, it's a message collector
9 Replies
d.js toolkit
d.js toolkit11mo 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 OP
AlexCdDg
AlexCdDg11mo ago
A select menu interaction doesn't have a customId property it does have, but it isn't to get the selected option
d.js docs
d.js docs11mo ago
:property: StringSelectMenuInteraction#values The values selected
AlexCdDg
AlexCdDg11mo ago
You should use that
ahmood
ahmood11mo ago
it does
AlexCdDg
AlexCdDg11mo ago
corrected
Robelo06
Robelo06OP11mo ago
using .values, same issue
AlexCdDg
AlexCdDg11mo ago
Remember that values returns an array (as showed in the docs), so you should get the first element of that array, if only one option can be selected at a time
Robelo06
Robelo06OP11mo ago
yeah, it worked now Thanks a lot to both!
Want results from more Discord servers?
Add your server