private Task Client_ClientError(ClientErrorEventArgs e) { Logger.Error($"Exception occured: {e.Exception.GetType()}: {e.Exception.Message}"); return Task.CompletedTask; }
private Task Client_SocketClosed(SocketCloseEventArgs e) { Logger.Info($"Gateway connection closed. Code: {e.CloseCode}"); return Task.CompletedTask; }
private Task Client_SocketErrored(SocketErrorEventArgs e) { Logger.Error("Gateway connection error", e.Exception); return Task.CompletedTask; }
private Task Client_Ready(ReadyEventArgs e) { Logger.Info("Client is ready to process events."); return Task.CompletedTask; }