public async ValueTask OnGuildMemberUpdate(GuildMemberUpdateEventArgs packet) { var updatedPacket = await UpdateGuildMemberCacheAsync(packet); var member = new DiscordGuildUser(updatedPacket, Client); await EventHandler.OnGuildMemberUpdate(member); }
public async ValueTask OnGuildMemberAdd(DiscordGuildMemberPacket packet) { await InsertGuildMemberCacheAsync(packet); var member = new DiscordGuildUser(packet, Client); await EventHandler.OnGuildMemberCreate(member); }