`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 toolkit16mo 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 docs16mo 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âriusOP16mo ago
Can you explain in detail It's the first time something like this has happened interactionCreate.js DiscordAPIError[50027]: Unknown interaction
b3ast
b3ast16mo 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âriusOP16mo ago
Keeps saying command prompt is loading Will it fix
b3ast
b3ast16mo ago
Show me the code, and show me what you see
Mârius
MâriusOP16mo ago
Mârius
MâriusOP16mo ago
Please help 720 server is down
Banker
Banker16mo ago
that's a different error..
Mârius
MâriusOP16mo ago
please help me solve @Banker
Mârius
MâriusOP16mo ago
:( wait i will when i get home @b3ast @b3ast bro
treble/luna
treble/luna16mo ago
#rules 5 and your 720 code isnt djs related
Mârius
MâriusOP16mo ago
Play command Wait how can i fix this then
treble/luna
treble/luna16mo ago
I dont know, its not djs related and without a'y additional info
Mârius
MâriusOP16mo 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
exceptionee16mo 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/luna16mo ago
15 minutes*
exceptionee
exceptionee16mo ago
really? ok
Want results from more Discord servers?
Add your server