bot can receive events but failed to reply after running for a few hours
I'm using discord.js 14.14.1
My bot always occur Unknow Interaction because it seems can't reply to discord but it can still receive events.
I simply run it on cmd. the log freezes after running for hours, and untill I press uncertain key then the Unknow Interaction error shows.
4 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!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 responsesyeah I run it on my pc which I used to do other things whlle the bot is running
I only make it sleep manually and not during the bot running