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.
No description
No description
12 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! - Marked as resolved by OP
d.js docs
d.js docs16mo ago
Tag 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 responses
GalaXd
GalaXdOP16mo ago
I try use deferReply but is still got error
GalaXd
GalaXdOP16mo ago
in a same time logs error, i got Unknow Interaction & Interaction has already been acknowledged.
No description
GalaXd
GalaXdOP16mo ago
for other example, i try use bot ping cmd (image 1), its work, but i got the error like this (image 2)
No description
No description
treble/luna
treble/luna16mo ago
you have to use editReply when deferring
GalaXd
GalaXdOP16mo ago
Already, but still doesn't work
ShompiFlen
ShompiFlen16mo ago
whats the error now
GalaXd
GalaXdOP16mo ago
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
GalaXd
GalaXdOP16mo ago
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
ShompiFlen
ShompiFlen16mo ago
first of all you dont need to do fetchReply: true if you are not using the returned reply anywhere
GalaXd
GalaXdOP16mo ago
Ok, now after i restart my vscode now its working fine, so ig this error cause autosave/system from vscode is got bugs
Want results from more Discord servers?
Add your server