mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 04:53:30 +01:00
types(CategoryChannel): fix createChannel return type (#7138)
This commit is contained in:
6
typings/index.d.ts
vendored
6
typings/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user