Constructors
constructor
Parameters
id: string
majorId: string
Properties
limit
limit: number = Infinity
Readonly majorId
majorId: string
remaining
remaining: number = 1
Accessors
durUntilReset
- get durUntilReset(): number
localLimited
- get localLimited(): boolean
Methods
handleRateLimit
- handleRateLimit(req: APIRequest<any>, res: ResponseData): Promise<ResponseData>
Parameters
Returns Promise<ResponseData>
queue
- queue(req: APIRequest<any>): Promise<ResponseData>
Parameters
Returns Promise<ResponseData>
The total amount of requests that can be made on this bucket before getting rate limited.