How best to handle `unknown interaction` on `deferReply`
Nomadding in Southeast Asia. My bot was working fine in Thailand but gets intermittent
Is there a way to check whether my
If exception is the only way, what's the elegant way? I can't return from
unknown interaction errors a lot here in Laos. Chased it for a couple of days looking at the usual reasons it occurs but it seems I'm getting it at the beginning of my handler where I do deferReply which does not seem to be among the usual causes. Internet here is a bit laggy/bursty I suppose.Is there a way to check whether my
interaction is still valid or can I only catch the exception when I try to use it?If exception is the only way, what's the elegant way? I can't return from
.catch() since it's a closure. Putting it all in try/catch would lump this expected exception in with random exceptions which doesn't feel right. I don't think I can put the rest of the handler inside .then()