Button to show modal

Hello, how can I show a modal to a user after a button was pressed?
4 Replies
d.js toolkit
d.js toolkit2y ago
• 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.
布鲁诺 普雷托
As of now I have 2 slash commands one for the button and the other for the modal
d.js docs
d.js docs2y ago
method ButtonInteraction#showModal() Shows a modal guide Other Interactions: Modals read more
Ricardo
Ricardo2y ago
is it possible to go around the interaction already replied now? because showModal is probably thr only way to show the form ..
Want results from more Discord servers?
Add your server