Closed dreamscached closed 2 years ago
Hello!
I'm using this library for a while now, but I could never figure how do I handle interruption signals (and just run some sort of cleanup tasks.)
I tried using onQuit and onError as well as DiscordClient destructor, but none of these seemed to be running any code on SIGINT/SIGHUP/SIGTERM.
onQuit
onError
DiscordClient
Is there a way to do this?
Hello!
I'm using this library for a while now, but I could never figure how do I handle interruption signals (and just run some sort of cleanup tasks.)
I tried using
onQuit
andonError
as well asDiscordClient
destructor, but none of these seemed to be running any code on SIGINT/SIGHUP/SIGTERM.Is there a way to do this?