mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
fix(Structures): remove Structures (#6027)
This commit is contained in:
37
typings/index.d.ts
vendored
37
typings/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user