`interactionCreate.js DiscordAPIError
interactionCreate.js DiscordAPIError[10062]: Unknown interaction
How to fix bot unavailable due to this error please help19 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!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 responsesCan you explain in detail
It's the first time something like this has happened
interactionCreate.js DiscordAPIError[50027]: Unknown interaction
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.Keeps saying command prompt is loading
Will it fix
Show me the code, and show me what you see
Please help 720 server is down
that's a different error..
please help me solve
@Banker
:(
wait i will when i get home
@b3ast
@b3ast bro
#rules 5
and your 720 code isnt djs related
Play command
Wait
how can i fix this then
I dont know, its not djs related and without a'y additional info
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
@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 connection15 minutes*
really?
ok