mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 08:41:29 +00:00
fix(Typing): dmChannel bulkDelete (#4115)
Co-Authored-By: Sugden <28943913+NotSugden@users.noreply.github.com>
This commit is contained in:
parent
46b9e25190
commit
819e04a7ab
1 changed files with 5 additions and 2 deletions
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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue