#Opening modal causes an error message in chat but submission works as expected

1 messages · Page 1 of 1 (latest)

restive cloak

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?