function handleRatelimit(?int $limit, ?int $remaining, ?float $resetTime) {
        if($limit === null && $remaining === null && $resetTime === null) {
            $this->remaining++; // there is no ratelimit...
            return;
        }
        
        $this->limit = $limit ?? $this->limit;
        $this->remaining = $remaining ?? $this->remaining;
        $this->resetTime = $resetTime ?? $this->resetTime;
        
        if($this->remaining === 0 && $this->resetTime > \microtime(true)) {
            $this->api->client->emit('debug', 'Endpoint "'.$this->endpoint.'" ratelimit encountered, continueing in '.($this->resetTime - \microtime(true)).' seconds');
        }
    }
function handleRatelimit(?int $limit, ?int $remaining, ?float $resetTime) {
        if($limit === null && $remaining === null && $resetTime === null) {
            $this->remaining++; // there is no ratelimit...
            return;
        }
        
        $this->limit = $limit ?? $this->limit;
        $this->remaining = $remaining ?? $this->remaining;
        $this->resetTime = $resetTime ?? $this->resetTime;
        
        if($this->remaining === 0 && $this->resetTime > \microtime(true)) {
            $this->api->client->emit('debug', 'Endpoint "'.$this->endpoint.'" ratelimit encountered, continueing in '.($this->resetTime - \microtime(true)).' seconds');
        }
    }
function handleRatelimit ( ? int $ limit , ? int $ remaining , ? float $ resetTime ) { if ( $ limit === null && $ remaining === null && $ resetTime === null ) { $ this -> remaining ++ ; // there is no ratelimit... return ; } $ this -> limit = $ limit ?? $ this -> limit ; $ this -> remaining = $ remaining ?? $ this -> remaining ; $ this -> resetTime = $ resetTime ?? $ this -> resetTime ; if ( $ this -> remaining === 0 && $ this -> resetTime > \ microtime ( true ) ) { $ this -> api -> client -> emit ( 'debug' , 'Endpoint "' . $ this -> endpoint . '" ratelimit encountered, continueing in ' . ( $ this -> resetTime - \ microtime ( true ) ) . ' seconds' ) ; } }
Sets the ratelimits from the response.
@param int|null    $limit
@param int|null    $remaining
@param float|null  $resetTime  Reset time in seconds with milliseconds.
@return \React\Promise\ExtendedPromiseInterface|void
Sets the ratelimits from the response .