interface RESTOptions {
    agent?: null | Agent;
    baseURL?: string;
    disableLatencyCompensation?: boolean;
    host?: string;
    latencyThreshold?: number;
    ratelimiterOffset?: number;
    requestTimeout?: number;
    userAgent?: string;
}

Properties

agent?: null | Agent

The agent to use for requests.

null
baseURL?: string

The base URL used for requests.


disableLatencyCompensation?: boolean

Built-in latency compensator.

false
host?: string

The Host header to use for requests.

Parsed from baseURL

latencyThreshold?: number

In milliseconds, the average request latency at which to start emitting latency errors.

30000
ratelimiterOffset?: number

In milliseconds, the time to offset ratelimit calculations by.

0
requestTimeout?: number

In milliseconds, how long to wait until a request is timed out.

15000
userAgent?: string

User-Agent header to use for requests.