Application not responding error
I followed the steps in this website: https://discordjs.guide/creating-your-bot/#using-config-json, and I keep getting this error when using the ping command. I have checked dozens of times to make sure my code matches the github repository provided, and have found no differences whatsoever. This is the error I get.
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
17 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 OPUnknown User•9mo ago
Message Not Public
Sign In & Join Server To View
this is in the index.js file
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
well this is in the file for the ping command
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
wdym
oh it's not...
how do I make it online?
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
that's in my index.js...
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
I ran it, and it worked once and then didn’t work a second time
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
it said that there was a discord api error (10062) unkown interaction
after doing /ping
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 responsesand discord api error 40060 - interaction has already been acknowledged
-
DiscordAPIError: Interaction has already been acknowledged
- [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
You have already replied to the interaction.
- Use <Interaction>.followUp()
to send a new message
- If you deferred reply it's better to use <Interaction>.editReply()
- Responding to slash commands / message componentsso apparently, the event listener in that same guide interfered with the slash command file and created the error