private void SetClientEvents() { _client.Log += _discordLogger.Log; _client.JoinedGuild += (guild) => Task.Run(() => _joinedGuild.Join(guild)); _client.MessageReceived += (message) => Task.Run(() => _messageReceived.ReceiveMessage(message)); RegisterObservers(); }
private void SetClientEvents() { _client.Log += _discordLogger.Log; _client.Ready += () => Task.Run(() => _discordNotifications.Ready(_client)); _client.MessageReceived += (message) => Task.Run(() => _messageReceived.ReceiveMessage(message)); RegisterObservers(); }