ApplyResponseOptions
Defined in: packages/rest/src/limiter.ts:34
Context for RateLimiter.applyResponse beyond the response itself.
Properties
Section titled “Properties”
optionalbody?:object
Defined in: packages/rest/src/limiter.ts:40
The decoded error body, for retry_after and global on a 429.
global?
Section titled “global?”
optionalglobal?:boolean
retry_after?
Section titled “retry_after?”
optionalretry_after?:number
global?
Section titled “global?”
optionalglobal?:string
Defined in: packages/rest/src/limiter.ts:38
Global-limit scope the request counts against, if any.
grant?
Section titled “grant?”
optionalgrant?:Grant
Defined in: packages/rest/src/limiter.ts:42
The grant the request was sent under.
identity?
Section titled “identity?”
optionalidentity?:string
Defined in: packages/rest/src/limiter.ts:36
Bucket-key prefix of the request’s identity (see requestIdentity).