Code is written using discord js v14.14.1
The code works to show the modal and it handles submission properly and returns the final reply formatted how I have set up. The issue is when I call the command and the modal pops up I can see in chat the message "There was an error while executing this command!" . I have tried adding an "interaction.reply()" immediatly after the .show modal command but that just gives an error saying the message has already been deferred. Any ideas on what causes the "There was an error while executing this command!" message and how i could prevent it?
#Opening modal causes an error message in chat but submission works as expected
2 messages · Page 1 of 1 (latest)
- What's your exact discord.js
npm list discord.jsand nodenode -vversion? - Not a discord.js issue? Check out #1081585952654360687.
- 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!