Yahia
Yahia
DIAdiscord.js - Imagine an app
Created by Yahia on 2/1/2024 in #djs-questions
Getting error in every interaction
I was opening my old bot that was working perfectly fine but every interaction gives me error without changing any thing in the code throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData); ^ DiscordAPIError[10062]: Unknown interaction at handleErrors (C:\Files\BOTS\Yarko\node_modules@discordjs\rest\dist\index.js:722:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async BurstHandler.runRequest (C:\Files\BOTS\Yarko\node_modules@discordjs\rest\dist\index.js:826:23) at async _REST.request (C:\Files\BOTS\Yarko\node_modules@discordjs\rest\dist\index.js:1266:22) at async ChatInputCommandInteraction.reply (C:\Files\BOTS\Yarko\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:111:5) { requestBody: { files: [], json: { type: 4, data: { content: 'rjfg', tts: false, nonce: undefined, embeds: undefined, components: undefined, username: undefined, avatar_url: undefined, allowed_mentions: undefined, flags: undefined, message_reference: undefined, attachments: undefined, sticker_ids: undefined, thread_name: undefined } } }, rawError: { message: 'Unknown interaction', code: 10062 }, code: 10062, status: 404, method: 'POST', url: 'https://discord.com/api/v10/interactions/1202619080180371496/aW50ZXJhY3Rpb246MTIwMjYxOTA4MDE4MDM3MTQ5NjpEaE00cnlhZ0I2dW1KZWRDNHlkR3NzMGtGSmg0YVJPUGZ3aVlrUWZpYkRRWGp2VUlkOXBaWTVXdVV3Tk1mTVNGaURaSWZ0QXNyNWMyTVNmNkNmbTNzYWVkaEo2WUJsYjFqWG8ybXRjbTZIYmFkNzBjYWJVUmhjM2VYa1VuOTA4Sg/callback' } discord.js v14.14.1 Node.js v20.11.0 I tried to defer or await but it didn't work
8 replies