ShutdownShardHook typedef Null safety

Future<void> ShutdownShardHook(
  1. Nyxx client,
  2. Shard shard
)

Hook executed when shard is disposing.

It could be either when shards disconnects or when bots process shuts down (look ShutdownHook.

Implementation

typedef ShutdownShardHook = Future<void> Function(Nyxx client, Shard shard);