Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RequestManager

Hierarchy

  • RequestManager

Index

Constructors

Properties

_client?: any
buckets: Map<string, BucketQueueManager> = ...

Queue managers for different buckets

client: RESTClient
limit: number = 50

The total amount of requests we can make until we're globally rate-limited.

offset: number = 0

The time offset between us and Discord.

remaining: number = 50

The remaining requests we can make until we're globally rate-limited.

reset: number = ...

When the global rate limit will reset.

timings: boolean = false

Whether to measure the timing of HTTP requests

Accessors

  • get durUntilReset(): number
  • get globalLimited(): boolean

Methods

  • getBucket(route: `/${string}`): string[]

Generated using TypeDoc