RestError
Class representing a REST error.
Signature
export declare class RestError extends ErrorJSDoc
@classRestError@extendsError
Properties
timestamp: number;The timestamp of the response.
@type{number}
status: number;The status of the response.
@type{number}
error: string;The error of the response.
@type{string}
path: string;The path of the response.
@type{string}
trace?: string;The trace of the response.
@type{string}
Methods
constructorConstructorconstructor({ timestamp, status, error, trace, message, path }: LavalinkRestError);