Struct RateLimitState
Stores the rate limit state for a given route.
Fields
| Name | Type | Description |
|---|---|---|
remaining
|
int |
|
resetTime
|
long |
Time at which this rate limit resets |
Methods
| Name | Description |
|---|---|
waitTime
|
Return the time that needs to be waited before another request can be made |
willRateLimit
|
Returns true if this request is valid |