detritus-client
Version:
A Typescript NodeJS library to interact with Discord's API, both Rest and Gateway.
36 lines (35 loc) • 920 B
TypeScript
import { GatewayRawEvents } from './gateway/rawevents';
declare class BaseError extends Error {
toJSON(): {
message: string;
name: string;
stack: string | undefined;
};
}
export declare class ClusterIPCError extends BaseError {
name: string;
stack: string;
constructor(error: {
message: string;
name: string;
stack: string;
});
}
export declare class GatewayError extends BaseError {
originalError: Error;
packet: GatewayRawEvents.GatewayPacket;
constructor(error: Error, packet: GatewayRawEvents.GatewayPacket);
}
export declare class GatewayHTTPError extends BaseError {
httpError: any;
constructor(message: string, httpError: any);
}
export declare class ImportedCommandsError extends BaseError {
errors: {
[key: string]: Error;
};
constructor(errors: {
[key: string]: Error;
});
}
export {};