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"); } }
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"); } }