Interaction already submitted

Greetings, I'm following the modal tutorial on discordjs.guide, but when I added some elements, filled it out and click submit, it threw out Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.. The error points to the slash command file which, line 32 only has interaction.showModal(). Here is the command's code. Any help would be greatly appreciated.
6 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Azure
AzureOP3y ago
Hello, I don't do any defer in my command handler. Here is my index file.
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Azure
AzureOP3y ago
It only got called once
Kilian
Kilian3y ago
Why do you want to execute the interaction on the builder? Do the execute on your client.on(interactionCreate). I would recommend this for you. The work with interaction.commandName
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server