Skip to content

Commit 33a7a5c

Browse files
authored
types(CategoryChannelChildManager): fix Holds type (#8288)
1 parent edf83f0 commit 33a7a5c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Diff for: packages/discord.js/typings/index.d.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -3284,11 +3284,7 @@ export class BaseGuildEmojiManager extends CachedManager<Snowflake, GuildEmoji,
32843284
public resolveIdentifier(emoji: EmojiIdentifierResolvable): string | null;
32853285
}
32863286

3287-
export class CategoryChannelChildManager extends DataManager<
3288-
Snowflake,
3289-
NonCategoryGuildBasedChannel,
3290-
GuildChannelResolvable
3291-
> {
3287+
export class CategoryChannelChildManager extends DataManager<Snowflake, CategoryChildChannel, GuildChannelResolvable> {
32923288
private constructor(channel: CategoryChannel);
32933289

32943290
public channel: CategoryChannel;
@@ -5436,7 +5432,7 @@ export type VoiceBasedChannel = Extract<Channel, { bitrate: number }>;
54365432

54375433
export type GuildBasedChannel = Extract<Channel, { guild: Guild }>;
54385434

5439-
export type NonCategoryGuildBasedChannel = Exclude<GuildBasedChannel, CategoryChannel>;
5435+
export type CategoryChildChannel = Exclude<Extract<Channel, { parent: CategoryChannel | null }>, CategoryChannel>;
54405436

54415437
export type NonThreadGuildBasedChannel = Exclude<GuildBasedChannel, AnyThreadChannel>;
54425438

0 commit comments

Comments
 (0)