mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 08:41:29 +00: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:
parent
32b405a5be
commit
60ad9053a3
1 changed files with 8 additions and 0 deletions
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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue