Koswy
Koswy
DIAdiscord.js - Imagine an app
Created by Koswy on 9/23/2024 in #djs-questions
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'
}
5 replies