Best way to get StringSelectMenuInteraction value from ButtonInteraction?
I have a StringSelect and a Button as my components.
I want the user to select a value from the StringSelect, and then press the button to confirm.
This is my current setup:
11 Replies
- 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!Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
It's more for additional confirmation as it will eventually charge the user.
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
:method: InteractionResponse#awaitMessageComponent
@14.15.1
Collects a single component interaction that passes the filter. The Promise will reject if the time expires.Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
interesting... thank you - I will look into this
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
:method: InteractionResponse#createMessageComponentCollector
@14.15.1
Creates a message component interaction collectorUnknown User•8mo ago
Message Not Public
Sign In & Join Server To View
Oh yeh, was typing that bit out in discord
will check this out, thanks