mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
typings: add HTTPError class definition (#2852)
Class was introduced with #2694 * typings: Add HTTPError class definition * typings: Sort HTTPError's members by name
This commit is contained in:
8
typings/index.d.ts
vendored
8
typings/index.d.ts
vendored
@@ -604,6 +604,14 @@ declare module 'discord.js' {
|
|||||||
public sync(): Promise<Integration>;
|
public sync(): Promise<Integration>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export class HTTPError extends Error {
|
||||||
|
constructor(message: string, name: string, code: number, method: string, path: string);
|
||||||
|
public code: number;
|
||||||
|
public method: string;
|
||||||
|
public name: string;
|
||||||
|
public path: string;
|
||||||
|
}
|
||||||
|
|
||||||
export class Invite extends Base {
|
export class Invite extends Base {
|
||||||
constructor(client: Client, data: object);
|
constructor(client: Client, data: object);
|
||||||
public channel: GuildChannel | GroupDMChannel;
|
public channel: GuildChannel | GroupDMChannel;
|
||||||
|
|||||||
Reference in New Issue
Block a user