Skip to content

ApplyResponseOptions

Defined in: packages/rest/src/limiter.ts:34

Context for RateLimiter.applyResponse beyond the response itself.

optional body?: object

Defined in: packages/rest/src/limiter.ts:40

The decoded error body, for retry_after and global on a 429.

optional global?: boolean

optional retry_after?: number


optional global?: string

Defined in: packages/rest/src/limiter.ts:38

Global-limit scope the request counts against, if any.


optional grant?: Grant

Defined in: packages/rest/src/limiter.ts:42

The grant the request was sent under.


optional identity?: string

Defined in: packages/rest/src/limiter.ts:36

Bucket-key prefix of the request’s identity (see requestIdentity).