`interactionCreate.js DiscordAPIError

interactionCreate.js DiscordAPIError[10062]: Unknown interaction How to fix bot unavailable due to this error please help
19 Replies
d.js toolkit
d.js toolkit2y 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!
d.js docs
d.js docs2y 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
Mârius
MâriusOP2y ago
Can you explain in detail It's the first time something like this has happened interactionCreate.js DiscordAPIError[50027]: Unknown interaction
b3ast
b3ast2y ago
Basically the code you are running before the line with interaction.reply() is taking longer than 3 seconds to reach that line, you can use interaction.deferReply() to give your code a longer time to respond.
Mârius
MâriusOP2y ago
Keeps saying command prompt is loading Will it fix
b3ast
b3ast2y ago
Show me the code, and show me what you see
Mârius
MâriusOP2y ago
Mârius
MâriusOP2y ago
Please help 720 server is down
Banker
Banker2y ago
that's a different error..
Mârius
MâriusOP2y ago
please help me solve @Banker
Mârius
MâriusOP2y ago
:( wait i will when i get home @b3ast @b3ast bro
treble/luna
treble/luna2y ago
#rules 5 and your 720 code isnt djs related
Mârius
MâriusOP2y ago
Play command Wait how can i fix this then
treble/luna
treble/luna2y ago
I dont know, its not djs related and without a'y additional info
Mârius
MâriusOP2y ago
either actually my bot is waiting for a response, but it's stuck, I don't know how to solve it, is there any chance you can help him @qjuhwould you look
exceptionee
exceptionee2y ago
@mymarius as b3ast mentioned the error you are getting is when your reply is taking longer than 3s to respond discord.js offers a event.deferReply() method though that I think gives you 15 seconds to respond ounce you defer the reply you can edit the reply by doing event.editReply() this is typically done if your response needs a long to proccess to finish such as fetching data from an API you could also just try to get a better network connection
treble/luna
treble/luna2y ago
15 minutes*
exceptionee
exceptionee2y ago
really? ok
Want results from more Discord servers?
Add your server