No command handler found

I have built a bot based on the guide (https://github.com/discordjs/guide/tree/main/code-samples/creating-your-bot/event-handling)- but I am getting an error on all the utility commands that are part of the guide? ``` DiscordAPIError[10062]: Unknown interaction at handleErrors (/app/bot/node_modules/@discordjs/rest/dist/index.js:722:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async BurstHandler.runRequest (/app/bot/node_modules/@discordjs/rest/dist/index.js:826:23) at async _REST.request (/app/bot/node_modules/@discordjs/rest/dist/index.js:1266:22) at async ChatInputCommandInteraction.reply (/app/bot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:111:5) at async Object.execute (/app/bot/commands/utility/user.js:8:3) at async Object.execute (/app/bot/events/interactionCreate.js:16:4) { requestBody: { files: [], json: { type: 4, data: [Object] } }, rawError: { message: 'Unknown interaction', code: 10062 }, code: 10062, status: 404, method: 'POST', url: 'https://discord.com/....' } node:events:497 throw er; // Unhandled 'error' event ^ There is more to the error but the bot also replies No command handler found, still WIP npm list discord.js └── [email protected] npm -v 10.2.4 node -v v21.6.2
2 Replies
d.js toolkit
d.js toolkit10mo 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!
Monkonymous
MonkonymousOP10mo ago
Rest of the error: DiscordAPIError[40060]: Interaction has already been acknowledged. at handleErrors (/app/bot/node_modules/@discordjs/rest/dist/index.js:722:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async BurstHandler.runRequest (/app/bot/node_modules/@discordjs/rest/dist/index.js:826:23) at async _REST.request (/app/bot/node_modules/@discordjs/rest/dist/index.js:1266:22) at async ChatInputCommandInteraction.reply (/app/bot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:111:5) at async Object.execute (/app/bot/events/interactionCreate.js:22:5) Emitted 'error' event on Client instance at: at emitUnhandledRejectionOrErr (node:events:402:10) at process.processTicksAndRejections (node:internal/process/task_queues:84:21) { requestBody: { files: [], json: { type: 4, data: { content: 'There was an error while executing this command!', tts: false, nonce: undefined, embeds: undefined, components: undefined, username: undefined, avatar_url: undefined, allowed_mentions: undefined, flags: 64, message_reference: undefined, attachments: undefined, sticker_ids: undefined, thread_name: undefined } } }, rawError: { message: 'Interaction has already been acknowledged.', code: 40060 }, code: 40060, status: 400, method: 'POST', url: 'https://discord.com.....' } It does reply but with the message "No command handler found, still WIP" for everything. It never responds properly. That could very well be possible. Thank you, I'll check that! Thank you, this has resolved the issue!
Want results from more Discord servers?
Add your server