Constructor
new RateLimit(limit: Tuple<number, number>)
Parameters:
Name | Type | Description |
---|---|---|
limit |
|
Tuple containing limit and duration |
- Source:
Properties
.duration: number
.isLimited: boolean
Return whether or not this ratelimit is currently capped out for the current expiry period
- Source:
.limit: number
The number of times this RateLimit can be called within its expiry period
- Source:
.remaining: number
The remaining number of uses this RateLimit has for this expiry period
- Source:
.wasNotified: boolean
Whether or not this RateLimit was flagged for having had a notification given for being capped for this expiry period
- Source:
Methods
.call() → boolean
Returns whether or not this rate limit has been capped out for its current expiry period while incrementing calls towards the rate limit cap if not currently capped
- Source:
.setNotified() → void
Flag this RateLimit as having had a notification given for being capped for this expiry period
- Source: