Ejemplo n.º 1
0
		public void SendUpdateStatus(long? idleSince, Game? game) 
            => QueueMessage(new UpdateStatusCommand
            {
                IdleSince = idleSince,
                Game = game != null ? new APIGame { Name = game.Value.Name, Type = game.Value.Type, Url = game.Value.Url } : null
            });
Ejemplo n.º 2
0
		public void SendUpdateStatus(long? idleSince, Game? game, bool? afk, UserStatus status) 
            => QueueMessage(new UpdateStatusCommand
            {
                IdleSince = idleSince,
                Game = game != null ? new APIGame { Name = game.Value.Name, Type = game.Value.Type, Url = game.Value.Url } : null,
                Afk = afk,
                Status = status.Value
            });