typings(GuildChannelStore): add CategoryChannel as possible return value (#3326)

This commit is contained in:
Skillz4Killz
2019-06-05 15:46:11 -04:00
committed by SpaceEEC
parent ddcc6cfec9
commit e87e4a6f0e

2
typings/index.d.ts vendored
View File

@@ -1440,7 +1440,7 @@ declare module 'discord.js' {
export class GuildChannelStore extends DataStore<Snowflake, GuildChannel, typeof GuildChannel, GuildChannelResolvable> {
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