[Unknown Interaction] from any deferReply, and from some editReply/reply
as an example of usage:
no matter where I put deferReply
first 3-4 usage of command will trigger error, sometimes on 3+ usages it executes normally
bot ping on host->discord 80-100ms, so it mustn't be a "long response"
6 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 OPCommon 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 responses3rd bullet point
otherwise probably host or network issue
I'm seeng the same on local
I've no shards, and only one bot instance, so... there mustn't be more that one process
or multiple instances of that class
or you have a piece of code that takes too long
piece of code that takes too longas you can see, I'm directrly subscibe to event, so there no 'other' code before this...
multiple instances of that classtypedi Container creating it, so it must be a singleton I'm also start getting same errors on projects with 14.11 djs, that was created on aboyt 14.11 release, and we doesn't change anything in them, but before all was fine I do: and I'm getting logs: there single instance but... error was ignored, and wasn't set
await interaction.deferReply().catch()
, and as before defer works fine
and now it goes to further code more often