What causes this to be seen as an unknown interaction?
im just trying to make a ping command
9 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 OP14.15.2 djs
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 responsesi defered the response in the interaction create event
may this be the cause of the error?
no
The error is thrown AT the deferReply()
So its already too late there
seems to have the fixed the use
Also if you defer you can't use
.reply()
ye i just remembered it should .editReply() if you defer
now it works when i do this
thanks for the help