frustrating unknown interaction

I'm getting alot of unknown interaction errors and I have no idea what it means
Solution:
I realized the problem: I was hosting my bot on my trashy local network and not my vps, that seems to be the cause of the problems. Thank you!
Jump to solution
4 Replies
Favna
Favna10mo ago
Interactions need to be replied to within 3 seconds (discord API rules!). If your processing takes some time defer the reply first. If your network is just that slow that you can't even defer on time there's sadly not much you can do outside of using a different network:
Upsided
Upsided10mo ago
I'm not exceeding that, that's where the confusion arises They just occur randomly
Favna
Favna10mo ago
If anything randomness only reinforces the possibility that it's related to network hiccups. I have no idea what you host your bot on but maybe it's starving for resources. You could add a Global precondition with position 0 that defers the interaction then returns ok so it's the first thing that always happens. Keep in mind that you need to also update your commands to use things like editReply then because the interaction was deferred.
Sapphire Framework
Global preconditions | Sapphire
Sometimes you want a precondition that automatically runs for every command, without having to add it to each command.
Solution
Upsided
Upsided10mo ago
I realized the problem: I was hosting my bot on my trashy local network and not my vps, that seems to be the cause of the problems. Thank you!
Want results from more Discord servers?
Add your server