fix(Typing): dmChannel bulkDelete (#4115)

Co-Authored-By: Sugden <28943913+NotSugden@users.noreply.github.com>
This commit is contained in:
Alon L
2020-04-26 16:59:30 +03:00
committed by GitHub
parent 46b9e25190
commit 819e04a7ab

7
typings/index.d.ts vendored
View File

@@ -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<T> = new (...args: any[]) => T;
function PartialTextBasedChannel<T>(Base?: Constructable<T>): Constructable<T & PartialTextBasedChannelFields>;
function TextBasedChannel<T>(Base?: Constructable<T>): Constructable<T & TextBasedChannelFields>;
function TextBasedChannel<T, I extends keyof TextBasedChannelFields = never>(
Base?: Constructable<T>,
ignore?: I[],
): Constructable<T & Omit<TextBasedChannelFields, I>>;
interface PartialTextBasedChannelFields {
lastMessageID: Snowflake | null;