Interface RESTOptions

Hierarchy

  • RESTOptions

Properties

agent?: null | Agent

The agent to use for requests.

Default Value

null

baseURL?: string

The base URL to use for requests - must be a fully qualified url.

Default Value

https://discordapp.com/api/v{REST_VERSION}

disableLatencyCompensation?: boolean

If the built-in latency compensator should be disabled.

Default Value

false

host?: string

The Host header to use for requests.

Default Value

Parsed from baseURL

latencyThreshold?: number

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

Default Value

30000

ratelimiterOffset?: number

In milliseconds, the time to offset ratelimit calculations by.

Default Value

0

requestTimeout?: number

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

Default Value

15000

userAgent?: string

The User-Agent header to use for requests.

Default Value

Oceanic/{VERSION} (https://github.com/OceanicJS/Oceanic)