unknown interaction
No results found for [2024-27-06 04:11:08] ERROR (rok-title-keeper on DESKTOP-UUUK1I0): Unknown interaction err: { "type": "_DiscordAPIError", "message": "Unknown interaction", "stack": _DiscordAPIError[10062]: Unknown interaction at handleErrors (D:\BOTS\rok-title-keeper 1st\node_modules@discordjs\rest\dist\index.js:730:13) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Object.runRequest (D:\BOTS\rok-title-keeper 1st\node_modules@discordjs\rest\dist\index.js:835:23) at _REST.request (D:\BOTS\rok-title-keeper 1st\node_modules@discordjs\rest\dist\index.js:1278:22) at ChatInputCommandInteraction.deferReply (D:\BOTS\rok-title-keeper 1st\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:71:5) at Client.<anonymous> (file:///D:/BOTS/rok-title-keeper%201st/src/index.ts:1:2108) "requestBody": { "json": { "type": 5, "data": {} } }, "rawError": { "type": "Object", "message": "Unknown interaction", "stack": "code": 10062 }, "code": 10062, "status": 404, "method": "POST", "url": "https://discord.com/api/v10/interactions/1255842816790368318/aW50ZXJhY3Rpb246MTI1NTg0MjgxNjc5MDM2ODMxODpzUVZuQm1jc2R0M2Nvd1hYaTRXVXpyOUp3SEVGc08wUEExZHI2OXhNSWkxeThhMHJwNUdLdXBXU05tZWlDNlJPdklRMk1BY1JJNnJsY01INEkyTUF4aHZsaTVqekMzdVQ0MEZTT21ZZmFScjBlYTF5WEZMYWlrZHRBTU9XZmpYRQ/callback" }.
16 Replies
- 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 staffNo results found for [2024-27-06 04:11:08] ERROR (rok-title-keeper on DESKTOP-UUUK1I0): Unknown interaction err: { "type": "_DiscordAPIError", "message": "Unknown interaction", "stack": _DiscordAPIError[10062]: Unknown interaction at handleErrors (D:\BOTS\rok-title-keeper 1st\node_modules@discordjs\rest\dist\index.js:730:13) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Object.runRequest (D:\BOTS\rok-title-keeper 1st\node_modules@discordjs\rest\dist\index.js:835:23) at _REST.request (D:\BOTS\rok-title-keeper 1st\node_modules@discordjs\rest\dist\index.js:1278:22) at ChatInputCommandInteraction.deferReply (D:\BOTS\rok-title-keeper 1st\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:71:5) at Client.<anonymous> (file:///D:/BOTS/rok-title-keeper%201st/src/index.ts:1:2108) "requestBody": { "json": { "type": 5, "data": {} } }, "rawError": { "type": "Object", "message": "Unknown interaction", "stack": "code": 10062 }, "code": 10062, "status": 404, "method": "POST", "url": "https://discord.com/api/v10/interactions/1255842816790368318/aW50ZXJhY3Rpb246MTI1NTg0MjgxNjc5MDM2ODMxODpzUVZuQm1jc2R0M2Nvd1hYaTRXVXpyOUp3SEVGc08wUEExZHI2OXhNSWkxeThhMHJwNUdLdXBXU05tZWlDNlJPdklRMk1BY1JJNnJsY01INEkyTUF4aHZsaTVqekMzdVQ0MEZTT21ZZmFScjBlYTF5WEZMYWlrZHRBTU9XZmpYRQ/callback" }.
This is my error
Let me show you my codes
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 responsesi cannot able to send here full code
https://srcb.in/Aw1XOayGpD that is my index.ts
why i an facing this error when i used /command
there is seperate title.ts where i used / command
please help me
this is just your handler
youre doing something in your command that takes longer than 3s
or you have duplicate listeneners (multiple instances, etc)
npm start
You see mn index.ts
yes
your index.ts is not your command
Wait
here i used commads
some time it giver error and sometimes not
cant help until you post it in a bin
D:\BOTS\rok-title-keeper 1st\node_modules@discordjs\rest\dist\index.js:730
throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData);
^
_DiscordAPIError[10062]: Unknown interaction
at handleErrors (D:\BOTS\rok-title-keeper 1st\node_modules@discordjs\rest\dist\index.js:730:13)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.runRequest (D:\BOTS\rok-title-keeper 1st\node_modules@discordjs\rest\dist\index.js:835:23)
at _REST.request (D:\BOTS\rok-title-keeper 1st\node_modules@discordjs\rest\dist\index.js:1278:22)
at ButtonInteraction.deferUpdate (D:\BOTS\rok-title-keeper 1st\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:203:5)
at InteractionCollector.filter (file:///D:/BOTS/rok-title-keeper%201st/src/commands/title.ts:1:5183)
at InteractionCollector.handleCollect (D:\BOTS\rok-title-keeper 1st\node_modules\discord.js\src\structures\interfaces\Collector.js:124:28)
now this error