From 6109669c972726a1ee9f0d5ec97a66d3ef3cde60 Mon Sep 17 00:00:00 2001 From: Sugden <28943913+NotSugden@users.noreply.github.com> Date: Fri, 28 Feb 2020 16:41:12 +0000 Subject: [PATCH] typings(WebhookClient): client is not a client (#3838) --- typings/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index 1b659740..97bfb052 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -1614,6 +1614,7 @@ declare module 'discord.js' { public avatar: string; public avatarURL(options?: ImageURLOptions): string | null; public channelID: Snowflake; + public client: Client; public guildID: Snowflake; public name: string; public owner: User | object | null; @@ -1623,6 +1624,7 @@ declare module 'discord.js' { export class WebhookClient extends WebhookMixin(BaseClient) { constructor(id: string, token: string, options?: ClientOptions); + public client: this; public token: string; } @@ -1892,7 +1894,6 @@ declare module 'discord.js' { function WebhookMixin(Base?: Constructable): Constructable; interface WebhookFields { - readonly client: Client; id: Snowflake; readonly createdAt: Date; readonly createdTimestamp: number;