beforeClose method

  1. @override
void beforeClose(
  1. 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);
}