You are reading the documentation for the next version of discord.js. Documentation for v13/v14+ has been moved to old.discordjs.dev

populateRatelimitErrorResponse

export declare function populateRatelimitErrorResponse(res: ServerResponse, error: RateLimitError): void;
export 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