Monkonymous
Monkonymous
DIAdiscord.js - Imagine an app
Created by Monkonymous on 2/17/2024 in #djs-questions
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
6 replies