Estal
Estal
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by Estal on 12/7/2023 in #djs-questions
Unknown Interaction. Not sure what the cause is
I'm using openai for chat gpt for general chat. It works sometimes and other times it does not. The error I'm getting is
DiscordAPIError[10062]: Unknown interaction
at handleErrors (E:\My Projects\EstalOBot\node_modules\@discordjs\rest\dist\index.js:722:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (E:\My Projects\EstalOBot\node_modules\@discordjs\rest\dist\index.js:826:23)
at async _REST.request (E:\My Projects\EstalOBot\node_modules\@discordjs\rest\dist\index.js:1266:22)
at async ChatInputCommandInteraction.reply (E:\My Projects\EstalOBot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:111:5)
at async Object.execute (E:\My Projects\EstalOBot\commands\utility\askgpt.js:38:13)
at async Client.<anonymous> (E:\My Projects\EstalOBot\CrisisBot.js:58:3) {
requestBody: { files: [], json: { type: 4, data: [Object] } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1182356437758918788/aW50ZXJhY3Rpb246MTE4MjM1NjQzNzc1ODkxODc4ODpwOFFIMmtMdFE0Zk54SFZxT0dLNlJRQVJ0b3U3QU4wT3NJQm1KUWw5OVlyeUNHYUpKbDBiSEs0N0FOOUZ5Vjl1aEs4WEhEUkJLcHNHbFozTmNQaERWVXc5cXp1WVBGQjR1eDJndVJxOTY1eGFPcmhjZmNlbEdiMkFNc0o1amVZbw/callback'
}
DiscordAPIError[10062]: Unknown interaction
at handleErrors (E:\My Projects\EstalOBot\node_modules\@discordjs\rest\dist\index.js:722:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (E:\My Projects\EstalOBot\node_modules\@discordjs\rest\dist\index.js:826:23)
at async _REST.request (E:\My Projects\EstalOBot\node_modules\@discordjs\rest\dist\index.js:1266:22)
at async ChatInputCommandInteraction.reply (E:\My Projects\EstalOBot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:111:5)
at async Object.execute (E:\My Projects\EstalOBot\commands\utility\askgpt.js:38:13)
at async Client.<anonymous> (E:\My Projects\EstalOBot\CrisisBot.js:58:3) {
requestBody: { files: [], json: { type: 4, data: [Object] } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1182356437758918788/aW50ZXJhY3Rpb246MTE4MjM1NjQzNzc1ODkxODc4ODpwOFFIMmtMdFE0Zk54SFZxT0dLNlJRQVJ0b3U3QU4wT3NJQm1KUWw5OVlyeUNHYUpKbDBiSEs0N0FOOUZ5Vjl1aEs4WEhEUkJLcHNHbFozTmNQaERWVXc5cXp1WVBGQjR1eDJndVJxOTY1eGFPcmhjZmNlbEdiMkFNc0o1amVZbw/callback'
}
6 replies
DIAdiscord.js - Imagine an app
Created by Estal on 12/5/2023 in #djs-questions
Global / Commands
How long does it it take for global / commands to register? Anytime I add a command I have to invite the bot back and it'll show that it has a new command, but it doesn't actually work and instead gives the data that the command wasn't found.
6 replies
DIAdiscord.js - Imagine an app
Created by Estal on 11/14/2023 in #djs-questions
First Example from the site doesn't work.
The very first example to work with and get an idea of tells me "Cannot use import statement outside a module" Do we have to use const? Using 14.14.1 discordjs and Node 18.17.1
4 replies