示例#1
0
        public CachedPresence(IGatewayClient client, PresenceJsonModel model)
            : base(client, model.User.Id)
        {
            GuildId  = model.GuildId;
            MemberId = model.User.Id;

            Update(model);
        }
示例#2
0
        public void Update(PresenceJsonModel model)
        {
            lock (this)
            {
                _activities = model.Activities;
            }

            Status   = model.Status;
            Statuses = model.ClientStatus;
        }