Unknow interaction
Hello, I've been stuck on the UnknowInteraction error returned by my code for several weeks. The problem is that I can't reproduce the bug, it happens randomly and despite many tries I still can't find the source of the problem.
Discord.js:
Node:
Env:
The code causing the error: https://github.com/gzordrai/UnityBot/blob/main/src/events/interactionCreate.ts
GitHub
UnityBot/src/events/interactionCreate.ts at main · gzordrai/UnityBot
Discord bot allowing verification of new users, role assignment and administration commands - UnityBot/src/events/interactionCreate.ts at main · gzordrai/UnityBot
6 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.Tag suggestion for @gzordrai:
Common causes of
DiscordAPIError[10062]: Unknown interaction
:
- Initial response took more than 3 seconds ➞ defer the response *.
- Wrong interaction object inside a collector.
* Note: you cannot defer modal or autocomplete value responsesI already know this, but i don't understand why the error is not constant
When i check the processing time between entering the code and defer is less than 3s
network issue possibly
there are 2 other bots running permanently on the server and it never crashes
I don't think it's a network problem