Пример #1
0
        internal static SocketGuildUser Create(SocketGuild guild, ClientState state, PresenceModel model)
        {
            SocketGuildUser entity = new SocketGuildUser(guild, guild.Discord.GetOrCreateUser(state, model.User));

            entity.Update(state, model, false);
            return(entity);
        }
Пример #2
0
        internal static SocketGuildUser Create(SocketGuild guild, ClientState state, MemberModel model)
        {
            var entity = new SocketGuildUser(guild, guild.Discord.GetOrCreateUser(state, model.User));

            entity.Update(state, model);
            return(entity);
        }
Пример #3
0
        internal static SocketGuildUser Create(SocketGuild guild, ClientState state, UserModel model)
        {
            SocketGuildUser entity = new SocketGuildUser(guild, guild.Discord.GetOrCreateUser(state, model));

            entity.Update(state, model);
            entity.UpdateRoles(new ulong[0]);
            return(entity);
        }
Пример #4
0
        internal static SocketGuildUser Create(SocketGuild guild, ClientState state, PresenceModel model)
        {
            var entity = new SocketGuildUser(guild, guild.Discord.GetOrCreateUser(state, model.User));

            entity.Update(state, model, false);
            if (!model.Roles.IsSpecified)
            {
                entity.UpdateRoles(new ulong[0]);
            }
            return(entity);
        }