Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BucketQueueManager

Hierarchy

  • BucketQueueManager

Index

Constructors

Properties

id: string
limit: number = Infinity

The total amount of requests that can be made on this bucket before getting rate limited.

majorId: string
remaining: number = 1

The remaining requests we can make until we are rate limited.

reset: number = -1

The UNIX timestamp at which this bucket's rate limit will expire.

Accessors

  • get durUntilReset(): number
  • get limited(): boolean
  • get localLimited(): boolean

Methods

  • handleRateLimit(req: APIRequest<any>, res: ResponseData): Promise<ResponseData>
  • queue(req: APIRequest<any>): Promise<ResponseData>

Generated using TypeDoc