From 819e04a7ab89fedf106250fb3eb407beeacd18af Mon Sep 17 00:00:00 2001 From: Alon L <37940683+DayColor@users.noreply.github.com> Date: Sun, 26 Apr 2020 16:59:30 +0300 Subject: [PATCH] fix(Typing): dmChannel bulkDelete (#4115) Co-Authored-By: Sugden <28943913+NotSugden@users.noreply.github.com> --- typings/index.d.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index 528045d47..32d60eee4 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -555,7 +555,7 @@ declare module 'discord.js' { public httpStatus: number; } - export class DMChannel extends TextBasedChannel(Channel) { + export class DMChannel extends TextBasedChannel(Channel, ['bulkDelete']) { constructor(client: Client, data?: object); public messages: MessageManager; public recipient: User; @@ -1973,7 +1973,10 @@ declare module 'discord.js' { type Constructable = new (...args: any[]) => T; function PartialTextBasedChannel(Base?: Constructable): Constructable; - function TextBasedChannel(Base?: Constructable): Constructable; + function TextBasedChannel( + Base?: Constructable, + ignore?: I[], + ): Constructable>; interface PartialTextBasedChannelFields { lastMessageID: Snowflake | null;