Please help, can't figure out what my problem is.
I recieve this error message twice:
Here is the code at that point:
const client = new Client({ intents: [GatewayIntentBits.Guilds] });
I run all the commands the bot has and it's working fine and then randomly I'll come back and it's crashed, no clue why. Any help is very appreciated.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 OPyour problem is easy to figure out from the error name, it has nothing to do with your intents.
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 responsesbased on the error stack trace, it seems to be coming from
commands/fun/mines.js
, line 149:column 13ohhh I'm stupid. Was just looking at the top line and immedietly went to my index.js file... thank you.
yw