I have an error but the message is sent

My error
(node:4332) DeprecationWarning: BaseInteraction#isSelectMenu() is deprecated. Use BaseInteraction#isStringSelectMenu() instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
DiscordAPIError[10062]: Unknown interaction
at handleErrors (C:\Users\liveweb\Desktop\DynaBot\node_modules\@discordjs\rest\dist\index.js:727:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (C:\Users\liveweb\Desktop\DynaBot\node_modules\@discordjs\rest\dist\index.js:831:23)
at async _REST.request (C:\Users\liveweb\Desktop\DynaBot\node_modules\@discordjs\rest\dist\index.js:1272:22)
at async ChatInputCommandInteraction.deferReply (C:\Users\liveweb\Desktop\DynaBot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:72:5)
at async Object.execute (C:\Users\liveweb\Desktop\DynaBot\commands\drop.js:36:9)
at async Client.<anonymous> (C:\Users\liveweb\Desktop\DynaBot\index.js:83:13) {
requestBody: { files: undefined, json: { type: 5, data: [Object] } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/.../callback'
}
DiscordAPIError[10062]: Unknown interaction
at handleErrors (C:\Users\liveweb\Desktop\DynaBot\node_modules\@discordjs\rest\dist\index.js:727:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
(node:4332) DeprecationWarning: BaseInteraction#isSelectMenu() is deprecated. Use BaseInteraction#isStringSelectMenu() instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
DiscordAPIError[10062]: Unknown interaction
at handleErrors (C:\Users\liveweb\Desktop\DynaBot\node_modules\@discordjs\rest\dist\index.js:727:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (C:\Users\liveweb\Desktop\DynaBot\node_modules\@discordjs\rest\dist\index.js:831:23)
at async _REST.request (C:\Users\liveweb\Desktop\DynaBot\node_modules\@discordjs\rest\dist\index.js:1272:22)
at async ChatInputCommandInteraction.deferReply (C:\Users\liveweb\Desktop\DynaBot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:72:5)
at async Object.execute (C:\Users\liveweb\Desktop\DynaBot\commands\drop.js:36:9)
at async Client.<anonymous> (C:\Users\liveweb\Desktop\DynaBot\index.js:83:13) {
requestBody: { files: undefined, json: { type: 5, data: [Object] } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/.../callback'
}
DiscordAPIError[10062]: Unknown interaction
at handleErrors (C:\Users\liveweb\Desktop\DynaBot\node_modules\@discordjs\rest\dist\index.js:727:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
3 Replies
d.js toolkit
d.js toolkit3mo 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!
./u.7-z
./u.7-zOP3mo ago
at async BurstHandler.runRequest (C:\Users\liveweb\Desktop\DynaBot\node_modules\@discordjs\rest\dist\index.js:831:23)
at async _REST.request (C:\Users\liveweb\Desktop\DynaBot\node_modules\@discordjs\rest\dist\index.js:1272:22)
at async ChatInputCommandInteraction.deferReply (C:\Users\liveweb\Desktop\DynaBot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:72:5)
at async Object.execute (C:\Users\liveweb\Desktop\DynaBot\commands\drop.js:36:9)
at async Client.<anonymous> (C:\Users\liveweb\Desktop\DynaBot\index.js:129:9) {
requestBody: { files: undefined, json: { type: 5, data: [Object] } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/.../callback'
}
at async BurstHandler.runRequest (C:\Users\liveweb\Desktop\DynaBot\node_modules\@discordjs\rest\dist\index.js:831:23)
at async _REST.request (C:\Users\liveweb\Desktop\DynaBot\node_modules\@discordjs\rest\dist\index.js:1272:22)
at async ChatInputCommandInteraction.deferReply (C:\Users\liveweb\Desktop\DynaBot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:72:5)
at async Object.execute (C:\Users\liveweb\Desktop\DynaBot\commands\drop.js:36:9)
at async Client.<anonymous> (C:\Users\liveweb\Desktop\DynaBot\index.js:129:9) {
requestBody: { files: undefined, json: { type: 5, data: [Object] } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/.../callback'
}
Nodejs ver v20.17.0 Discordjs ver @14.16.3 I don't understand where the error comes from and the message is sent
d.js docs
d.js docs3mo ago
Common causes of DiscordAPIError[10062]: Unknown interaction: - Initial response took more than 3 seconds ➞ defer the response *. - Wrong interaction object inside a collector. - Two processes handling the same command (the first consumes the interaction, so it won't be valid for the other instance) * Note: you cannot defer modal or autocomplete value responses
Want results from more Discord servers?
Add your server