Skip to content

Commit

Permalink
types(CategoryChannelChildManager): fix Holds type (#8288)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImRodry committed Jul 17, 2022
1 parent edf83f0 commit 33a7a5c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/discord.js/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3284,11 +3284,7 @@ export class BaseGuildEmojiManager extends CachedManager<Snowflake, GuildEmoji,
public resolveIdentifier(emoji: EmojiIdentifierResolvable): string | null;
}

export class CategoryChannelChildManager extends DataManager<
Snowflake,
NonCategoryGuildBasedChannel,
GuildChannelResolvable
> {
export class CategoryChannelChildManager extends DataManager<Snowflake, CategoryChildChannel, GuildChannelResolvable> {
private constructor(channel: CategoryChannel);

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

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

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

export type NonThreadGuildBasedChannel = Exclude<GuildBasedChannel, AnyThreadChannel>;

Expand Down

0 comments on commit 33a7a5c

Please sign in to comment.