Error says that it doesn't recognize the interaction 💀

node:events:492
throw er; // Unhandled 'error' event
^
DiscordAPIError[10062]: Unknown interaction
at handleErrors (D:\Discord\EroBot\node_modules\@discordjs\rest\dist\index.js:730:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (D:\Discord\EroBot\node_modules\@discordjs\rest\dist\index.js:835:23)
at async _REST.request (D:\Discord\EroBot\node_modules\@discordjs\rest\dist\index.js:1278:22)
at async ModalSubmitInteraction.reply (D:\Discord\EroBot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:114:5)
at async Object.execute (D:\Discord\EroBot\src\events\Tier 2 Verification\Tier2VerifyModalListener.js:99:6)
Emitted 'error' event on SapphireClient instance at:
at emitUnhandledRejectionOrErr (node:events:397:10)
at process.processTicksAndRejections (node:internal/process/task_queues:84:21) {
requestBody: {
files: [],
json: {
type: 4,
data: {
content: '**VERIFIED ✅ -** <@883283797968318496> you have been verified as a <@&1241916986087309372> member for 1 Hour',
tts: false,
nonce: undefined,
enforce_nonce: false,
embeds: undefined,
components: undefined,
username: undefined,
avatar_url: undefined,
allowed_mentions: undefined,
flags: 64,
message_reference: undefined,
attachments: undefined,
sticker_ids: undefined,
thread_name: undefined,
applied_tags: undefined,
poll: undefined
}
}
},
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',

}
node:events:492
throw er; // Unhandled 'error' event
^
DiscordAPIError[10062]: Unknown interaction
at handleErrors (D:\Discord\EroBot\node_modules\@discordjs\rest\dist\index.js:730:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (D:\Discord\EroBot\node_modules\@discordjs\rest\dist\index.js:835:23)
at async _REST.request (D:\Discord\EroBot\node_modules\@discordjs\rest\dist\index.js:1278:22)
at async ModalSubmitInteraction.reply (D:\Discord\EroBot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:114:5)
at async Object.execute (D:\Discord\EroBot\src\events\Tier 2 Verification\Tier2VerifyModalListener.js:99:6)
Emitted 'error' event on SapphireClient instance at:
at emitUnhandledRejectionOrErr (node:events:397:10)
at process.processTicksAndRejections (node:internal/process/task_queues:84:21) {
requestBody: {
files: [],
json: {
type: 4,
data: {
content: '**VERIFIED ✅ -** <@883283797968318496> you have been verified as a <@&1241916986087309372> member for 1 Hour',
tts: false,
nonce: undefined,
enforce_nonce: false,
embeds: undefined,
components: undefined,
username: undefined,
avatar_url: undefined,
allowed_mentions: undefined,
flags: 64,
message_reference: undefined,
attachments: undefined,
sticker_ids: undefined,
thread_name: undefined,
applied_tags: undefined,
poll: undefined
}
}
},
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',

}
line 99 would be here (image 2 attached) what I dont understand is why the interaction object is unknown im sure more information is needed and I am okay to provide it
2 Replies
d.js toolkit
d.js toolkit•7mo 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!
d.js docs
d.js docs•7mo 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