mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
fix(Typing): dmChannel bulkDelete (#4115)
Co-Authored-By: Sugden <28943913+NotSugden@users.noreply.github.com>
This commit is contained in:
7
typings/index.d.ts
vendored
7
typings/index.d.ts
vendored
@@ -555,7 +555,7 @@ declare module 'discord.js' {
|
|||||||
public httpStatus: number;
|
public httpStatus: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class DMChannel extends TextBasedChannel(Channel) {
|
export class DMChannel extends TextBasedChannel(Channel, ['bulkDelete']) {
|
||||||
constructor(client: Client, data?: object);
|
constructor(client: Client, data?: object);
|
||||||
public messages: MessageManager;
|
public messages: MessageManager;
|
||||||
public recipient: User;
|
public recipient: User;
|
||||||
@@ -1973,7 +1973,10 @@ declare module 'discord.js' {
|
|||||||
|
|
||||||
type Constructable<T> = new (...args: any[]) => T;
|
type Constructable<T> = new (...args: any[]) => T;
|
||||||
function PartialTextBasedChannel<T>(Base?: Constructable<T>): Constructable<T & PartialTextBasedChannelFields>;
|
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 {
|
interface PartialTextBasedChannelFields {
|
||||||
lastMessageID: Snowflake | null;
|
lastMessageID: Snowflake | null;
|
||||||
|
|||||||
Reference in New Issue
Block a user