skr002
skr002
DIAdiscord.js - Imagine an app
Created by skr002 on 1/11/2024 in #djs-questions
Please help, can't figure out what my problem is.
I recieve this error message twice:
DiscordAPIError[10062]: Unknown interaction
at handleErrors (/home/minecraft/multicraft/servers/server640069/node_modules/@discordjs/rest/dist/index.js:640:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async BurstHandler.runRequest (/home/minecraft/multicraft/servers/server640069/node_modules/@discordjs/rest/dist/index.js:736:23)
at async REST.request (/home/minecraft/multicraft/servers/server640069/node_modules/@discordjs/rest/dist/index.js:1387:22)
at async ChatInputCommandInteraction.reply (/home/minecraft/multicraft/servers/server640069/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:111:5)
at async Object.execute (/home/minecraft/multicraft/servers/server640069/commands/fun/mines.js:149:13)
at async Client.<anonymous> (/home/minecraft/multicraft/servers/server640069/index.js:71:3) {
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/1194884078114197585/aW50ZXJhY3Rpb246MTE5NDg4NDA3ODExNDE5NzU4NTpOOEYxRHdPRThQVmdpQXlXenJCTUR5SWpHUDJJVW1BSjBqQXZOUUVzN0tiT1hQdlBIc1R6NDRMRGNRNW93WkM3Rkh2RUdGOTNnOVphYWZjd1pqUkI5ZWlmcERpR0Q1UzVlUk1wRXVvSjdpUTN3akFoeWVVZkpkQm9VUTlxSVhWMQ/callback'
}
node:events:491
throw er; // Unhandled 'error' event
^
DiscordAPIError[10062]: Unknown interaction
at handleErrors (/home/minecraft/multicraft/servers/server640069/node_modules/@discordjs/rest/dist/index.js:640:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async BurstHandler.runRequest (/home/minecraft/multicraft/servers/server640069/node_modules/@discordjs/rest/dist/index.js:736:23)
at async REST.request (/home/minecraft/multicraft/servers/server640069/node_modules/@discordjs/rest/dist/index.js:1387:22)
at async ChatInputCommandInteraction.reply (/home/minecraft/multicraft/servers/server640069/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:111:5)
at async Object.execute (/home/minecraft/multicraft/servers/server640069/commands/fun/mines.js:149:13)
at async Client.<anonymous> (/home/minecraft/multicraft/servers/server640069/index.js:71:3) {
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/1194884078114197585/aW50ZXJhY3Rpb246MTE5NDg4NDA3ODExNDE5NzU4NTpOOEYxRHdPRThQVmdpQXlXenJCTUR5SWpHUDJJVW1BSjBqQXZOUUVzN0tiT1hQdlBIc1R6NDRMRGNRNW93WkM3Rkh2RUdGOTNnOVphYWZjd1pqUkI5ZWlmcERpR0Q1UzVlUk1wRXVvSjdpUTN3akFoeWVVZkpkQm9VUTlxSVhWMQ/callback'
}
node:events:491
throw er; // Unhandled 'error' event
^
Here is the code at that point: const client = new Client({ intents: [GatewayIntentBits.Guilds] }); I run all the commands the bot has and it's working fine and then randomly I'll come back and it's crashed, no clue why. Any help is very appreciated.
7 replies