Closed krisppurg closed 3 years ago
in case anyone is having the issue like me, a hacky solution until it is solved is to just use the on_disconnect event
discord.events.on_disconnect = proc (s: Shard) {.async.} =
echo("You have been disconnected")
I'm guessing the issue is that it's calling a function that is nil?
Have you tried that hobble?
Using it in doccat, hasn't crashed when it usually would after a few hours
This occurs when s.connection == nil.