Preventing Unknown Interaction Crash

i get "unknown interaction" error at random times... like sometimes a button works fine and sometimes it gives the said error.... ofc the bot crashes when it happens... is there any way i can prevent it from crashing when this happens ? and also keep the button collector going ?
5 Replies
d.js toolkit
d.js toolkit13mo 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!
wen
wenOP13mo ago
No description
d.js docs
d.js docs13mo ago
Tag suggestion for @U j a a n: 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
hey.o
hey.o12mo ago
I had this same issue.. you need to defer the reply
wen
wenOP12mo ago
ahh tysm for the help guys :)
Want results from more Discord servers?
Add your server