Library referenceClasses
KrunkerRateLimitError
429, or a request refused locally because the window is known to be empty
Extends
Constructors
Constructor
new KrunkerRateLimitError(
url,
retryAfter,
body,
preemptive?
): KrunkerRateLimitError;Parameters
| Parameter | Type | Default value |
|---|---|---|
url | string | undefined |
retryAfter | number | undefined |
body | unknown | undefined |
preemptive? | boolean | false |
Returns
KrunkerRateLimitError
Overrides
Properties
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
body | readonly | unknown | parsed error body, or the raw text when it was no json | KrunkerHttpError.body |
cause? | public | unknown | - | KrunkerHttpError.cause |
message | public | string | - | KrunkerHttpError.message |
name | public | string | - | KrunkerHttpError.name |
preemptive | readonly | boolean | true when the client refused to send because the window is known to be empty | - |
retryAfter | readonly | number | seconds until the window resets | - |
stack? | public | string | - | KrunkerHttpError.stack |
status | readonly | number | - | KrunkerHttpError.status |
url | readonly | string | - | KrunkerHttpError.url |