From 60ad9053a3f7d0cfcfe9871bc5aa6eca791caf02 Mon Sep 17 00:00:00 2001 From: Kyra Date: Sun, 23 Sep 2018 22:07:19 +0200 Subject: [PATCH] typings: add HTTPError class definition (#2852) Class was introduced with #2694 * typings: Add HTTPError class definition * typings: Sort HTTPError's members by name --- typings/index.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/typings/index.d.ts b/typings/index.d.ts index 3042b130c..80ba73526 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -604,6 +604,14 @@ declare module 'discord.js' { public sync(): Promise; } + 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 { constructor(client: Client, data: object); public channel: GuildChannel | GroupDMChannel;