fix(Structures): remove Structures (#6027)

This commit is contained in:
1Computer1
2021-07-04 07:26:35 -04:00
committed by GitHub
parent db60e367b4
commit ab0b3b9a07
11 changed files with 31 additions and 193 deletions

37
typings/index.d.ts vendored
View File

@@ -1888,20 +1888,6 @@ declare module 'discord.js' {
public type: 'store';
}
export class Structures extends null {
private constructor();
public static get<K extends keyof Extendable>(structure: K): Extendable[K];
public static get(structure: string): (...args: any[]) => void;
public static extend<K extends keyof Extendable, T extends Extendable[K]>(
structure: K,
extender: (baseClass: Extendable[K]) => T,
): T;
public static extend<T extends (...args: any[]) => void>(
structure: string,
extender: (baseClass: typeof Function) => T,
): T;
}
export class SystemChannelFlags extends BitField<SystemChannelFlagsString> {
public static FLAGS: Record<SystemChannelFlagsString, number>;
public static resolve(bit?: BitFieldResolvable<SystemChannelFlagsString, number>): number;
@@ -3326,29 +3312,6 @@ declare module 'discord.js' {
type ExplicitContentFilterLevel = keyof typeof ExplicitContentFilterLevels;
interface Extendable {
GuildEmoji: typeof GuildEmoji;
DMChannel: typeof DMChannel;
TextChannel: typeof TextChannel;
VoiceChannel: typeof VoiceChannel;
CategoryChannel: typeof CategoryChannel;
NewsChannel: typeof NewsChannel;
StoreChannel: typeof StoreChannel;
ThreadChannel: typeof ThreadChannel;
GuildMember: typeof GuildMember;
ThreadMember: typeof ThreadMember;
Guild: typeof Guild;
Message: typeof Message;
MessageReaction: typeof MessageReaction;
Presence: typeof Presence;
VoiceState: typeof VoiceState;
Role: typeof Role;
User: typeof User;
CommandInteraction: typeof CommandInteraction;
ButtonInteraction: typeof ButtonInteraction;
SelectMenuInteraction: typeof SelectMenuInteraction;
}
interface FetchApplicationCommandOptions extends BaseFetchOptions {
guildID?: Snowflake;
}