Unknown Interaction - Cooldowns reconfigure

I have been reconfiguring my bot to use the built in cooldowns in discord.js instead of my own functions. I have been following the guide on the discord.js website and have completed the necessary changes however i receive a unknown interaction error when ever i run a command. The command actualy works and i get the response from the bot but it crashes stright after. Error: C:\Users\ajlon\OneDrive\Documents\GitHub\Empire\node_modules@discordjs\rest\dist\index.js:687 throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData); ^ DiscordAPIError[10062]: Unknown interaction at handleErrors (C:\Users\ajlon\OneDrive\Documents\GitHub\Empire\node_modules@discordjs\rest\dist\index.js:687:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async BurstHandler.runRequest (C:\Users\ajlon\OneDrive\Documents\GitHub\Empire\node_modules@discordjs\rest\dist\index.js:786:23) at async _REST.request (C:\Users\ajlon\OneDrive\Documents\GitHub\Empire\node_modules@discordjs\rest\dist\index.js:1218:22) at async ChatInputCommandInteraction.reply (C:\Users\ajlon\OneDrive\Documents\GitHub\Empire\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:111:5) { requestBody: { files: [], json: { type: 4, data: { content: undefined, tts: false, nonce: undefined, embeds: [ { author: [Object], description: 'Kain Nøxx bets Xs and rolls the dice', thumbnail: [Object], title: 'Dice Game', color: 1752220, fields: [Array] } ], 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/1162042087571738704/aW50ZXJhY3Rpb246MTE2MjA0MjA4NzU3MTczODcwNDo2cmZzdnpkWFJqMTdINEFSbUlkeGhyR3RXRU4xaEw3MGlQcXBOTU9kZkhad1Y3QWJNSnBVTHhOZmt1c2lKOHZ6V0kzbmVwZ1E3VHdITW9wWWlQejRRZ21zMEVqT2VDS2FYeFBIT0RFQ0xDNXZyWHhiQ3N0b0VtSzdXbnhOQnBBZA/callback'
} Node.js v20.8.0 [nodemon] app crashed - waiting for file changes before starting...
4 Replies
d.js toolkit
d.js toolkit14mo 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! - Marked as resolved by OP
Kain Nøxx
Kain NøxxOP14mo ago
Kain Nøxx
Kain NøxxOP14mo ago
Oh thank you so much. I feel so dumb for not seeing that.
Want results from more Discord servers?
Add your server