Unknown interaction

anyone know how can i fix this error ?
DiscordAPIError[10062]: Unknown interaction
at handleErrors (C:\Users\Mss\Desktop\Yousef\node_modules\@discordjs\rest\dist\index.js:722:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (C:\Users\Mss\Desktop\Yousef\node_modules\@discordjs\rest\dist\index.js:826:23)
at async _REST.request (C:\Users\Mss\Desktop\Yousef\node_modules\@discordjs\rest\dist\index.js:1266:22)
at async StringSelectMenuInteraction.update (C:\Users\Mss\Desktop\Yousef\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:233:5)
at async InteractionCollector.<anonymous> (C:\Users\Mss\Desktop\Yousef\src\commands\public\list.js:106:9) {
requestBody: { files: [], json: { type: 7, data: [Object] } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1201097180606373928/aW50ZXJhY3Rpb246MTIwMTA5NzE4MDYwNjM3MzkyODpDUFB1NnVMMTFJenJTOUh4V2Rsbk90U1A3R3FJbjNzOHhFMjN2dDREZzBsc2FheHFwbzVlcEFDbmRGSTdabWFMa05EZmRMcXA3VHA2NVRDS1d6VWJ3aGtDcXFDdlp3d3BQOHo4WjRMVjVpZHlpNE8wNEd5WFEwSkVqeXJRZDd0Vw/callback'
}
DiscordAPIError[10062]: Unknown interaction
at handleErrors (C:\Users\Mss\Desktop\Yousef\node_modules\@discordjs\rest\dist\index.js:722:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (C:\Users\Mss\Desktop\Yousef\node_modules\@discordjs\rest\dist\index.js:826:23)
at async _REST.request (C:\Users\Mss\Desktop\Yousef\node_modules\@discordjs\rest\dist\index.js:1266:22)
at async StringSelectMenuInteraction.update (C:\Users\Mss\Desktop\Yousef\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:233:5)
at async InteractionCollector.<anonymous> (C:\Users\Mss\Desktop\Yousef\src\commands\public\list.js:106:9) {
requestBody: { files: [], json: { type: 7, data: [Object] } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1201097180606373928/aW50ZXJhY3Rpb246MTIwMTA5NzE4MDYwNjM3MzkyODpDUFB1NnVMMTFJenJTOUh4V2Rsbk90U1A3R3FJbjNzOHhFMjN2dDREZzBsc2FheHFwbzVlcEFDbmRGSTdabWFMa05EZmRMcXA3VHA2NVRDS1d6VWJ3aGtDcXFDdlp3d3BQOHo4WjRMVjVpZHlpNE8wNEd5WFEwSkVqeXJRZDd0Vw/callback'
}
3 Replies
d.js toolkit
d.js toolkit5mo 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!
treble/luna
treble/luna5mo ago
please dont crosspost
d.js docs
d.js docs5mo 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