Exemple #1
0
        private void SetClientEvents()
        {
            _client.Log             += _discordLogger.Log;
            _client.JoinedGuild     += (guild) => Task.Run(() => _joinedGuild.Join(guild));
            _client.MessageReceived += (message) => Task.Run(() => _messageReceived.ReceiveMessage(message));

            RegisterObservers();
        }
Exemple #2
0
        private void SetClientEvents()
        {
            _client.Log             += _discordLogger.Log;
            _client.Ready           += () => Task.Run(() => _discordNotifications.Ready(_client));
            _client.MessageReceived += (message) => Task.Run(() => _messageReceived.ReceiveMessage(message));

            RegisterObservers();
        }