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 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 OP
AlexCdDg
AlexCdDg12mo 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 docs12mo ago
:property: StringSelectMenuInteraction#values The values selected
AlexCdDg
AlexCdDg12mo ago
You should use that
ahmood
ahmood12mo ago
it does
AlexCdDg
AlexCdDg12mo ago
corrected
Robelo06
Robelo06OP12mo ago
using .values, same issue
AlexCdDg
AlexCdDg12mo 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
Robelo06OP12mo ago
yeah, it worked now Thanks a lot to both!

Did you find this page helpful?