populateGeneralErrorResponse
export declare function populateGeneralErrorResponse(res: ServerResponse, error: DiscordAPIError | HTTPError): void;
export declare function populateGeneralErrorResponse(res: ServerResponse, error: DiscordAPIError | HTTPError): void;
Populates a server response with the data from a Discord non-2xx REST response that is NOT a 429
Name | Type | Optional | Description |
---|---|---|---|
res | ServerResponse | No | The server response to populate |
error | DiscordAPIError | HTTPError | No | The error to populate the response with |