DiscordAPIError[40060]: Interaction has already been acknowledged.

I've been trying to solve this problem for quite some time. I am making a ticket system and it is very annoying that this error appears. There are times it comes out and times it doesn't. I don't know what to do. The code is: https://sourceb.in/45e02bpMvL Console error:
DiscordAPIError[40060]: Interaction has already been acknowledged.
at handleErrors (C:\Users\Usuario\Bots Discord\LegoFamily\node_modules\@discordjs\rest\dist\index.js:730:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (C:\Users\Usuario\Bots Discord\LegoFamily\node_modules\@discordjs\rest\dist\index.js:835:23)
at async _REST.request (C:\Users\Usuario\Bots Discord\LegoFamily\node_modules\@discordjs\rest\dist\index.js:1278:22)
at async ModalSubmitInteraction.update (C:\Users\Usuario\Bots Discord\LegoFamily\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:236:5)
at async Object.execute (C:\Users\User\Bots Discord\LegoFamily\src\Buttons\Tickets\Options\closeTicket.js:58:13) {
requestBody: { files: [], json: { type: 7, data: [Object] } },
rawError: {
message: 'Interaction has already been acknowledged.',
code: 40060
},
code: 40060,
status: 400,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1287607767476994129/aW50ZXJhY3Rpb246MTI4NzYwNzc2NzQ3Njk5NDEyOTo3T2R0ZlNzN0tJbG5TUTQ2d0NkdHNPNndMdHN6QVNpN2p6cGxNU3ZxeXRzdEJVN2ZFV3Y3SFk5UmhwdEdadWNqUHFFcm9JQ29zVk96aTVKMzR4eGxIYUlKdFZCMlV6eEVjclBTbTJDbGMwZTRpSjJvclhrdWlNSEJ6cmxoNEZjRg/callback'
}
DiscordAPIError[40060]: Interaction has already been acknowledged.
at handleErrors (C:\Users\Usuario\Bots Discord\LegoFamily\node_modules\@discordjs\rest\dist\index.js:730:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (C:\Users\Usuario\Bots Discord\LegoFamily\node_modules\@discordjs\rest\dist\index.js:835:23)
at async _REST.request (C:\Users\Usuario\Bots Discord\LegoFamily\node_modules\@discordjs\rest\dist\index.js:1278:22)
at async ModalSubmitInteraction.update (C:\Users\Usuario\Bots Discord\LegoFamily\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:236:5)
at async Object.execute (C:\Users\User\Bots Discord\LegoFamily\src\Buttons\Tickets\Options\closeTicket.js:58:13) {
requestBody: { files: [], json: { type: 7, data: [Object] } },
rawError: {
message: 'Interaction has already been acknowledged.',
code: 40060
},
code: 40060,
status: 400,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1287607767476994129/aW50ZXJhY3Rpb246MTI4NzYwNzc2NzQ3Njk5NDEyOTo3T2R0ZlNzN0tJbG5TUTQ2d0NkdHNPNndMdHN6QVNpN2p6cGxNU3ZxeXRzdEJVN2ZFV3Y3SFk5UmhwdEdadWNqUHFFcm9JQ29zVk96aTVKMzR4eGxIYUlKdFZCMlV6eEVjclBTbTJDbGMwZTRpSjJvclhrdWlNSEJ6cmxoNEZjRg/callback'
}
4 Replies
d.js toolkit
d.js toolkit2mo 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
Kinect3000
Kinect30002mo ago
The stack trace is off by 2 lines. Did you change smth in the code?
Amgelo
Amgelo2mo ago
you can use the original interaction (the one that shows the modal) id as a suffix ^^
Koswy
KoswyOP2mo ago
Thanks!
Want results from more Discord servers?
Add your server