Search...

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
NameTypeOptionalDescription
resServerResponseNoThe server response to populate
errorRateLimitErrorNoThe error to populate the response with