internal override void Update(PresenceModel model)
        {
            Presence ??= new SocketPresence();

            Presence.Update(model);
            GlobalUser.Update(model);
        }
Example #2
0
 internal void Update(ClientState state, PresenceModel model, bool updatePresence)
 {
     if (updatePresence)
     {
         Presence = SocketPresence.Create(model);
         GlobalUser.Update(state, model);
     }
     if (model.Nick.IsSpecified)
     {
         Nickname = model.Nick.Value;
     }
     if (model.Roles.IsSpecified)
     {
         UpdateRoles(model.Roles.Value);
     }
 }