beforeClose method
- NyxxGateway client
override
Called before each client this plugin is added to closes.
Implementation
@override
void beforeClose(NyxxGateway client) {
registeredCommands.removeWhere((command) => command.manager.client == client);
_attachedClients.remove(client);
}