SonnenPingu
DIAdiscord.js - Imagine an app
•Created by SonnenPingu on 9/27/2024 in #djs-questions
How do I prevent this if you press a button several times that it makes the error below?
Error retrieving command list: DiscordAPIError[10062]: Unknown interaction
at handleErrors (/home/container/node_modules/@discordjs/rest/src/lib/handlers/Shared.ts:148:10)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (/home/container/node_modules/@discordjs/rest/src/lib/handlers/BurstHandler.ts:144:20)
at async _REST.request (/home/container/node_modules/@discordjs/rest/src/lib/REST.ts:210:20)
at async ButtonInteraction.reply (/home/container/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:115:5)
at async HelpCommand.showCommandList (/home/container/commands/help.js:90:13)
at async InteractionCollector.<anonymous> (/home/container/commands/help.js:110:17) {
requestBody: { files: [], json: { type: 4, data: [Object] } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1289131782347685918/aW50ZXJhY3Rpb246MTI4OTEzMTc4MjM0NzY4NTkxODpMOEs2M3E2V0ROUmJKTnNnYmJ3UDZ4VXp6QkFtb2FIN05hWERCOTZyMmdIZzFhUkxhSzVOcVR5SmtkSGh0SmdvQmw5ODU3Z1lNcGNUMGxMVHNkaGhIWFNRRG80OWxTSmdOdGg3NXFpQ3B6QmVXZUxGZjJtTTFZYlZxUHdUMVJhag/callback'
}
Error processing the interaction: Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
at ButtonInteraction.reply (/home/container/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:105:46)
at HelpCommand.showCommandList (/home/container/commands/help.js:94:31)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async InteractionCollector.<anonymous> (/home/container/commands/help.js:110:17) {
code: 'InteractionAlreadyReplied'
}
Error retrieving command list: DiscordAPIError[10062]: Unknown interaction
at handleErrors (/home/container/node_modules/@discordjs/rest/src/lib/handlers/Shared.ts:148:10)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (/home/container/node_modules/@discordjs/rest/src/lib/handlers/BurstHandler.ts:144:20)
at async _REST.request (/home/container/node_modules/@discordjs/rest/src/lib/REST.ts:210:20)
at async ButtonInteraction.reply (/home/container/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:115:5)
at async HelpCommand.showCommandList (/home/container/commands/help.js:90:13)
at async InteractionCollector.<anonymous> (/home/container/commands/help.js:110:17) {
requestBody: { files: [], json: { type: 4, data: [Object] } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1289131792560951338/aW50ZXJhY3Rpb246MTI4OTEzMTc5MjU2MDk1MTMzODpWc1FyRXozblNTeW5LTGRpMXBQWHJJZjVSdGFUelNXWWlCeXo0QTNCb1ZmQmtXSU1GS3FXcnVxN0I1dno3NGFlRG5LWWJxOExoRFVxMDZLb2w5NnRqUjBzQnhMS1lvalExV0V1TlFlWHN1R1N3YVBFR2VqQllISGFuRVpwcU94eA/callback'
}
Error retrieving command list: DiscordAPIError[10062]: Unknown interaction
at handleErrors (/home/container/node_modules/@discordjs/rest/src/lib/handlers/Shared.ts:148:10)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (/home/container/node_modules/@discordjs/rest/src/lib/handlers/BurstHandler.ts:144:20)
at async _REST.request (/home/container/node_modules/@discordjs/rest/src/lib/REST.ts:210:20)
at async ButtonInteraction.reply (/home/container/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:115:5)
at async HelpCommand.showCommandList (/home/container/commands/help.js:90:13)
at async InteractionCollector.<anonymous> (/home/container/commands/help.js:110:17) {
requestBody: { files: [], json: { type: 4, data: [Object] } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1289131782347685918/aW50ZXJhY3Rpb246MTI4OTEzMTc4MjM0NzY4NTkxODpMOEs2M3E2V0ROUmJKTnNnYmJ3UDZ4VXp6QkFtb2FIN05hWERCOTZyMmdIZzFhUkxhSzVOcVR5SmtkSGh0SmdvQmw5ODU3Z1lNcGNUMGxMVHNkaGhIWFNRRG80OWxTSmdOdGg3NXFpQ3B6QmVXZUxGZjJtTTFZYlZxUHdUMVJhag/callback'
}
Error processing the interaction: Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
at ButtonInteraction.reply (/home/container/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:105:46)
at HelpCommand.showCommandList (/home/container/commands/help.js:94:31)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async InteractionCollector.<anonymous> (/home/container/commands/help.js:110:17) {
code: 'InteractionAlreadyReplied'
}
Error retrieving command list: DiscordAPIError[10062]: Unknown interaction
at handleErrors (/home/container/node_modules/@discordjs/rest/src/lib/handlers/Shared.ts:148:10)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (/home/container/node_modules/@discordjs/rest/src/lib/handlers/BurstHandler.ts:144:20)
at async _REST.request (/home/container/node_modules/@discordjs/rest/src/lib/REST.ts:210:20)
at async ButtonInteraction.reply (/home/container/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:115:5)
at async HelpCommand.showCommandList (/home/container/commands/help.js:90:13)
at async InteractionCollector.<anonymous> (/home/container/commands/help.js:110:17) {
requestBody: { files: [], json: { type: 4, data: [Object] } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1289131792560951338/aW50ZXJhY3Rpb246MTI4OTEzMTc5MjU2MDk1MTMzODpWc1FyRXozblNTeW5LTGRpMXBQWHJJZjVSdGFUelNXWWlCeXo0QTNCb1ZmQmtXSU1GS3FXcnVxN0I1dno3NGFlRG5LWWJxOExoRFVxMDZLb2w5NnRqUjBzQnhMS1lvalExV0V1TlFlWHN1R1N3YVBFR2VqQllISGFuRVpwcU94eA/callback'
}
5 replies