Creating first modal, not sure why it is saying it timed out?

Code: https://gist.github.com/DudeThatsErin/381060d568e3ced244a4a814cf77b754 It keeps going to the .catch block and also saying that the command doesn't exist.
Gist
report.js
report.js. GitHub Gist: instantly share code, notes, and snippets.
4 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
조아오
조아오3y ago
Logg the error in the catch To see whats happening
Erin
ErinOP3y ago
DiscordAPIError[40060]: Interaction has already been acknowledged.
at SequentialHandler.runRequest (/root/test-bot/node_modules/discord.js/node_modules/@discordjs/rest/dist/index.js:659:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async SequentialHandler.queueRequest (/root/test-bot/node_modules/discord.js/node_modules/@discordjs/rest/dist/index.js:458:14)
at async REST.request (/root/test-bot/node_modules/discord.js/node_modules/@discordjs/rest/dist/index.js:902:22)
at async ModalSubmitInteraction.deferReply (/root/test-bot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:69:5)
at async /root/test-bot/slashcommands/reports/report.js:47:17
at async Object.execute (/root/test-bot/events/interactionCreate.js:66:17) {
requestBody: { files: undefined, json: { type: 5, data: [Object] } },
rawError: {
message: 'Interaction has already been acknowledged.',
code: 40060
},
code: 40060,
status: 400,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1035556592063627275/aW50ZXJhY3Rpb246MTAzNTU1NjU5MjA2MzYyNzI3NTpFNE14VlU1bkRtNzRLRUQ1MG9nYTJiZnpwSEkzNXBiWXU4Slk4STA5SjhzWmVLb0J1dmJWMlR6TDM5U1NsaDkxdjhVVGhoTm9GMGlhNjhNWmVMUUJOamp4SXUzS2YwWnhIbFoxM2p0QmVCb0ROaDdsRjFyc0hvOWtlZnZSdDBhcA/callback'
}
DiscordAPIError[40060]: Interaction has already been acknowledged.
at SequentialHandler.runRequest (/root/test-bot/node_modules/discord.js/node_modules/@discordjs/rest/dist/index.js:659:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async SequentialHandler.queueRequest (/root/test-bot/node_modules/discord.js/node_modules/@discordjs/rest/dist/index.js:458:14)
at async REST.request (/root/test-bot/node_modules/discord.js/node_modules/@discordjs/rest/dist/index.js:902:22)
at async ModalSubmitInteraction.deferReply (/root/test-bot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:69:5)
at async /root/test-bot/slashcommands/reports/report.js:47:17
at async Object.execute (/root/test-bot/events/interactionCreate.js:66:17) {
requestBody: { files: undefined, json: { type: 5, data: [Object] } },
rawError: {
message: 'Interaction has already been acknowledged.',
code: 40060
},
code: 40060,
status: 400,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1035556592063627275/aW50ZXJhY3Rpb246MTAzNTU1NjU5MjA2MzYyNzI3NTpFNE14VlU1bkRtNzRLRUQ1MG9nYTJiZnpwSEkzNXBiWXU4Slk4STA5SjhzWmVLb0J1dmJWMlR6TDM5U1NsaDkxdjhVVGhoTm9GMGlhNjhNWmVMUUJOamp4SXUzS2YwWnhIbFoxM2p0QmVCb0ROaDdsRjFyc0hvOWtlZnZSdDBhcA/callback'
}
Yes line 47
d.js docs
d.js docs3y ago
method BaseInteraction#isCommand() Indicates whether this interaction is a CommandInteraction
Want results from more Discord servers?
Add your server