Ejemplo n.º 1
0
        public async ValueTask OnGuildMemberUpdate(GuildMemberUpdateEventArgs packet)
        {
            var updatedPacket = await UpdateGuildMemberCacheAsync(packet);

            var member = new DiscordGuildUser(updatedPacket, Client);

            await EventHandler.OnGuildMemberUpdate(member);
        }
Ejemplo n.º 2
0
        public async ValueTask OnGuildMemberAdd(DiscordGuildMemberPacket packet)
        {
            await InsertGuildMemberCacheAsync(packet);

            var member = new DiscordGuildUser(packet, Client);

            await EventHandler.OnGuildMemberCreate(member);
        }