Search...

populateGeneralErrorResponse

Populates a server response with the data from a Discord non-2xx REST response that is NOT a 429
declare function populateGeneralErrorResponse(res: ServerResponse, error: DiscordAPIError | HTTPError): void;
declare function populateGeneralErrorResponse(res: ServerResponse, error: DiscordAPIError | HTTPError): void;
NameTypeOptionalDescription
resServerResponseNoThe server response to populate
errorDiscordAPIError | HTTPErrorNoThe error to populate the response with