mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 04:53:30 +01:00
typings(GuildChannelStore): add CategoryChannel as possible return value (#3326)
This commit is contained in:
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
@@ -1440,7 +1440,7 @@ declare module 'discord.js' {
|
|||||||
|
|
||||||
export class GuildChannelStore extends DataStore<Snowflake, GuildChannel, typeof GuildChannel, GuildChannelResolvable> {
|
export class GuildChannelStore extends DataStore<Snowflake, GuildChannel, typeof GuildChannel, GuildChannelResolvable> {
|
||||||
constructor(guild: Guild, iterable?: Iterable<any>);
|
constructor(guild: Guild, iterable?: Iterable<any>);
|
||||||
public create(name: string, options?: GuildCreateChannelOptions): Promise<TextChannel | VoiceChannel>;
|
public create(name: string, options?: GuildCreateChannelOptions): Promise<TextChannel | VoiceChannel | CategoryChannel>;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hacky workaround because changing the signature of an overriden method errors
|
// Hacky workaround because changing the signature of an overriden method errors
|
||||||
|
|||||||
Reference in New Issue
Block a user