Unknow Interaction
idk why when i try use Translate or other cmd its work like second picture, but I always got error like first picture, its say is from line 45 (for Translate context cmd), but when i check its just code
try {}
. not only this cmd, but all cmds when i try to run them always send error spam messages to the terminal.12 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 OPTag suggestion for @galaxd1274:
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 try use deferReply but is still got error
in a same time logs error, i got
Unknow Interaction
& Interaction has already been acknowledged.
for other example, i try use
bot ping
cmd (image 1), its work, but i got the error like this (image 2)you have to use editReply when deferring
Already, but still doesn't work
whats the error now
ok this i record the error logs when i try use some cmd (for example Translate context cmd), i have made many changes such as removing the btn component, but when i try the cmd, the btn component still appears when the bot responds, and I get so many error logs
So you could say that the changes made are not saved, but the automatic save system is active in VScode, and I don't know why with so many error logs, Even though yesterday it was fine, there was no error message like that at all
first of all you dont need to do
fetchReply: true
if you are not using the returned reply anywhereOk, now after i restart my vscode now its working fine, so ig this error cause autosave/system from vscode is got bugs