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.
No description
7 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! - Marked as resolved by staff
GonzaAhre
GonzaAhreOP13mo ago
Example of code
GonzaAhre
GonzaAhreOP13mo ago
No description
Ashish
Ashish13mo ago
Defer your reply before your Promise.all
GonzaAhre
GonzaAhreOP13mo ago
I'll try, thank you! At least, with the modification it still works, but I don't know if it will keep crashing
No description
GonzaAhre
GonzaAhreOP13mo ago
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
Ashish
Ashish13mo ago
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
Want results from more Discord servers?
Add your server