ShutdownHook typedef
Hook executed when disposing bots process.
Executed most likely when process receives SIGINT (*nix) or SIGTERM (*nix and windows). Not guaranteed to be completed or executed at all.
Implementation
typedef ShutdownHook = Future<void> Function(Nyxx client);