populateRatelimitErrorResponse
declare function populateRatelimitErrorResponse(res: ServerResponse, error: RateLimitError): void;
declare function populateRatelimitErrorResponse(res: ServerResponse, error: RateLimitError): void;
Populates a server response with the data from a Discord 429 REST response
Name | Type | Optional | Description |
---|---|---|---|
res | ServerResponse | No | The server response to populate |
error | RateLimitError | No | The error to populate the response with |