Multiselect dropdown list collector doesn't trigger
Good evening I have a first Dropdown list with 2 choices (maxValues = 1), then according to the choices it displays another dropdown list with 3 choices (maxValues = 3). The collector is working correctly for the first dropdown but for the second one when I select for example 2 values and then click away, it does not trigger the collector.
Here's the code below :
Thank you for your help
9 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.where are you creating the collector for the 2nd select menu?
I thought I didn't need to as I distinguished 2 cases with the customId and it's a stringSelect, so it would work for both
you're creating the collector on a message where there's just the 1st select menu
The first message is updated with the second select menu thought
I don't really understand how should I fix this since it's the same message who's been collected all along the process
you have sent a message in which you have put a row with only one select menu
you have also create the collector on that message
you don't collect the values for 2nd select menu which is sent in a separate message
So I should create a second collector inside the first one after creating my second select menu ?
try something like this yeah