How to create a modal based on the options they picked from a dropdown menu

Please tell me how
36 Replies
d.js toolkit
d.js toolkit2mo 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
d.js docs
d.js docs2mo ago
:property: StringSelectMenuInteraction#values @14.15.3 The values selected
treble/luna
treble/luna2mo ago
check the values and handle accordingly
wut
wut2mo ago
ok ill try i dont get please can you provide an example script and instructions on how u did it
treble/luna
treble/luna2mo ago
no its really easy you just make a switch or if else and compare your values depending on which value you build the modal
wut
wut2mo ago
i tried it doesnt work
treble/luna
treble/luna2mo ago
define doesnt work
wut
wut2mo ago
it keeps saying this interaction failed
wut
wut2mo ago
No description
wut
wut2mo ago
there
treble/luna
treble/luna2mo ago
and do you reply to the interaction and where
wut
wut2mo ago
no like u select out of the menu there and i want it to create a modal based on it lemme show u a vid example
treble/luna
treble/luna2mo ago
i know what you want and i told you how it is pretty easy
wut
wut2mo ago
it didnt work
d.js docs
d.js docs2mo ago
:class: ModalBuilder @1.8.2 A builder that creates API-compatible JSON data for modals.
Want results from more Discord servers?
Add your server