Modal submiting

When a user uses a command, as example /say, a modal pops up using interaction.showModal(modal). But when I use interaction.awaitModalSubmit() in the code of this command, I'm having the following issue: When I use the command, close the modal, use the command again and submit the modal: the first command receives the second commands modal too. So I get 2 answers instead of only the last. I also had an issue that it took other user's modals as well, but I fixed that with a member filter.
4 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
Syjalo
Syjalo12mo ago
You can use the slash command interaction id as a random nonce
SirNuny
SirNunyOP12mo ago
That's a good idea. What's the limit of a customId again?
Syjalo
Syjalo12mo ago
100
Want results from more Discord servers?
Add your server