types(CategoryChannel): fix createChannel return type (#7138)

This commit is contained in:
Rodry
2021-12-24 10:58:50 +00:00
committed by GitHub
parent e6f41b578a
commit 1626dded5b
2 changed files with 4 additions and 8 deletions

6
typings/index.d.ts vendored
View File

@@ -509,11 +509,7 @@ export class CategoryChannel extends GuildChannel {
name: string,
options: CategoryCreateChannelOptions & { type: 'GUILD_STORE' | ChannelTypes.GUILD_STORE },
): Promise<StoreChannel>;
public createChannel(
name: string,
options?: CategoryCreateChannelOptions,
): Promise<Exclude<NonThreadGuildBasedChannel, CategoryChannel>>;
public createChannel(name: string, options?: CategoryCreateChannelOptions): Promise<TextChannel>;
}
export type CategoryChannelResolvable = Snowflake | CategoryChannel;