Esempio n. 1
0
        public async Task OnGuildMemberUpdatedAsync(SocketGuildUser guildUserBefore, SocketGuildUser guildUserAfter)
        {
            var method = new GuildMemberUpdated(Client, Config);
            var result = await method.ProcessAsync(guildUserBefore, guildUserAfter).ConfigureAwait(false);

            if (result)
            {
                IncrementEventHandle("GuildMemberUpdated");
            }
        }
Esempio n. 2
0
        public async Task OnGuildMemberUpdatedAsync(SocketGuildUser guildUserBefore, SocketGuildUser guildUserAfter)
        {
            if (!CanProcessEvent("GuildMemberUpdated"))
            {
                return;
            }

            var method = new GuildMemberUpdated(Client, Config);
            var result = await method.ProcessAsync(guildUserBefore, guildUserAfter).ConfigureAwait(false);

            if (result)
            {
                EventPostProcess("GuildMemberUpdated");
            }
        }