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.
No description
17 Replies
d.js toolkit
d.js toolkit9mo ago
- 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 OP
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
getrithekd
getrithekdOP9mo ago
this is in the index.js file
No description
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
getrithekd
getrithekdOP9mo ago
well this is in the file for the ping command
No description
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
getrithekd
getrithekdOP9mo ago
wdym oh it's not... how do I make it online?
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
getrithekd
getrithekdOP9mo ago
that's in my index.js...
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
getrithekd
getrithekdOP9mo ago
I ran it, and it worked once and then didn’t work a second time
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
getrithekd
getrithekdOP9mo ago
it said that there was a discord api error (10062) unkown interaction after doing /ping
d.js docs
d.js docs9mo ago
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 responses
getrithekd
getrithekdOP9mo ago
and discord api error 40060 - interaction has already been acknowledged
d.js docs
d.js docs9mo ago
- 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 components
getrithekd
getrithekdOP9mo ago
so apparently, the event listener in that same guide interfered with the slash command file and created the error
Want results from more Discord servers?
Add your server