Interface RestOptions

Rest options.

Hierarchy

  • RestOptions

Properties

bucketSweepInterval?: number | false

An interval in milliseconds in which to sweep inactive buckets. False disables sweeping buckets automatically.

Default

300000
code500retries?: number

The amount of times to retry a request if it returns code 500.

Default

3
disableRatelimits?: boolean

If true, internal rate limits are disabled. Only disable rate limits if you are using a separate application to manage rate limits (customBaseURL can be used to do so), or know exactly what you are doing.

Default

false
ratelimitGlobal?: number

The amount of requests to allow to be sent per second.

Default

50
ratelimitPause?: number

The amount of time in milliseconds to wait between rate limited requests in the same bucket.

Default

10
version?: number

The Discord API version to use.

See

Discord API Reference

Default

10

Generated using TypeDoc