Esempio n. 1
0
        public async Task SendStatusUpdateAsync(long?idleSince, Game game, RequestOptions options = null)
        {
            var args = new StatusUpdateParams
            {
                IdleSince = idleSince,
                Game      = game
            };

            await SendGatewayAsync(GatewayOpCode.StatusUpdate, args, options : options).ConfigureAwait(false);
        }
 public async Task SendStatusUpdateAsync(UserStatus status, bool isAFK, long? since, Game game, RequestOptions options = null)
 {
     options = RequestOptions.CreateOrClone(options);
     var args = new StatusUpdateParams
     {
         Status = status,
         IdleSince = since,
         IsAFK = isAFK,
         Game = game
     };
     await SendGatewayAsync(GatewayOpCode.StatusUpdate, args, options: options).ConfigureAwait(false);
 }
        public async Task SendStatusUpdateAsync(UserStatus status, bool isAFK, long?since, GameJson game, RequestOptions options = null)
        {
            options = RequestOptions.CreateOrClone(options);
            StatusUpdateParams args = new StatusUpdateParams
            {
                Status    = status,
                IdleSince = since,
                IsAFK     = isAFK,
                Game      = game
            };

            options.BucketId = GatewayBucket.Get(GatewayBucketType.PresenceUpdate).Id;
            await SendGatewayAsync(GatewayOpCode.StatusUpdate, args, options : options).ConfigureAwait(false);
        }