We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, I followed the official documentation for setting up my Discord bot, but it still doesn't work as expected. You can find my code here.
When I try to use a command, it sometimes works, but in most cases, I get the following error in the terminal:
Erro na interactionCreate: DiscordAPIError[10062]: Unknown interaction node:events:496 throw er; // Unhandled 'error' event ^ DiscordAPIError[10062]: Unknown interaction at handleErrors (/media/alek/outro/RepositóriosVisualCode/Lili bot/node_modules/@discordjs/rest/dist/index.js:727:13) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async BurstHandler.runRequest (/media/alek/outro/RepositóriosVisualCode/Lili bot/node_modules/@discordjs/rest/dist/index.js:831:23) at async _REST.request (/media/alek/outro/RepositóriosVisualCode/Lili bot/node_modules/@discordjs/rest/dist/index.js:1272:22) at async ChatInputCommandInteraction.reply (/media/alek/outro/RepositóriosVisualCode/Lili bot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:115:5) at async Object.execute (/media/alek/outro/RepositóriosVisualCode/Lili bot/events/interactionCreate.js:25:17) Emitted 'error' event on Client instance at: at emitUnhandledRejectionOrErr (node:events:401:10) at process.processTicksAndRejections (node:internal/process/task_queues:92:21) { requestBody: { files: [], json: { type: 4, data: { content: 'There was an error while executing this command!', tts: false, nonce: undefined, enforce_nonce: false, 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, applied_tags: undefined, poll: undefined } } }, rawError: { message: 'Unknown interaction', code: 10062 }, code: 10062, status: 404, method: 'POST', url: 'https://discord.com/api/v10/interactions/1303522422376370197/aW50ZXJhY3Rpb246MTMwMzUyMjQyMjM3NjM3MDE5NzpXaGhkY256UHFMMGNBdGZSTU1BZ01hc2pvdEtMcEtZU3d4Y1VCN2VybjQzVHBieVpHUFcwMjR1TkZldE0yQUlWV3hTVnl1N0w4SGxIRW9kWXdTRHdpZXYxNDNRaDVqdHRpa0dFTkoyTXFTa0NKMzE1UEhHQmthUjlpbkJKbXFpRg/callback' }
Follow the documentation until this section and try to use the slash commands.
No response
Device: Debian 12 Node version: 22.11.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Hello, I followed the official documentation for setting up my Discord bot, but it still doesn't work as expected. You can find my code here.
When I try to use a command, it sometimes works, but in most cases, I get the following error in the terminal:
To Reproduce
Follow the documentation until this section and try to use the slash commands.
Screenshots
No response
Device (please complete the following information)
Device: Debian 12
Node version: 22.11.0
Additional notes
No response
The text was updated successfully, but these errors were encountered: