Unknown Interaction
I've been struggling with this error for a long time, I'm defering almost all my commands, and this still happens, so I decided to use an anti-crash method, that is appearently working, but I know that's not the best option. So, I want to know if there's a way to fix this error.
7 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 staffExample of code
Defer your reply before your Promise.all
I'll try, thank you! At least, with the modification it still works, but I don't know if it will keep crashing
Is it better outside the try block, right?
Apparently is working better now (At least, it didn't crash since I've changed that) so, thank you very much! @Trains
Yeah because you only have 3 seconds to reply or defer the interaction. Your await calls probably take longer than 3s giving you that error