weird UnknownInteractionError
i've sent my slashCommand file, i just get randomly UnknownInteractionError on the first run of command.
14 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 OPits so confusing
i've tried so many runs, but it just happens randomly
Tag suggestion for @esek zeytin:
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 responsesoh it must be the database call then
Because the interaction reply took less than 3 seconds sometimes and more the other times, you should defer the reply
Yep
what defer does actually?
It basically tells Discord you need more time to respond and shows a Bot is thinking... message that you can edit within 15 minutes
oh i read the guide, thanks
thank you so much man
Ah nice, and of course
anything you wanna say?
Nope, that's it
<3