Skip to content

Commit

Permalink
fix(GuildChannelType): add missing GuildCategory type (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateo-tem committed Sep 4, 2022
1 parent 04b3a7f commit 815c68f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 16 deletions.
5 changes: 1 addition & 4 deletions deno/payloads/v10/channel.ts
Expand Up @@ -50,10 +50,7 @@ export type TextChannelType =
| ChannelType.GuildForum
| ChannelType.GuildVoice;

export type GuildChannelType = Exclude<
TextChannelType | ChannelType.GuildVoice | ChannelType.GuildStageVoice | ChannelType.GuildAnnouncement,
ChannelType.DM | ChannelType.GroupDM
>;
export type GuildChannelType = Exclude<ChannelType, ChannelType.DM | ChannelType.GroupDM>;

export interface APITextBasedChannel<T extends ChannelType> extends APIChannelBase<T> {
/**
Expand Down
5 changes: 1 addition & 4 deletions deno/payloads/v9/channel.ts
Expand Up @@ -50,10 +50,7 @@ export type TextChannelType =
| ChannelType.GuildForum
| ChannelType.GuildVoice;

export type GuildChannelType = Exclude<
TextChannelType | ChannelType.GuildVoice | ChannelType.GuildStageVoice | ChannelType.GuildAnnouncement,
ChannelType.DM | ChannelType.GroupDM
>;
export type GuildChannelType = Exclude<ChannelType, ChannelType.DM | ChannelType.GroupDM>;

export interface APITextBasedChannel<T extends ChannelType> extends APIChannelBase<T> {
/**
Expand Down
5 changes: 1 addition & 4 deletions payloads/v10/channel.ts
Expand Up @@ -50,10 +50,7 @@ export type TextChannelType =
| ChannelType.GuildForum
| ChannelType.GuildVoice;

export type GuildChannelType = Exclude<
TextChannelType | ChannelType.GuildVoice | ChannelType.GuildStageVoice | ChannelType.GuildAnnouncement,
ChannelType.DM | ChannelType.GroupDM
>;
export type GuildChannelType = Exclude<ChannelType, ChannelType.DM | ChannelType.GroupDM>;

export interface APITextBasedChannel<T extends ChannelType> extends APIChannelBase<T> {
/**
Expand Down
5 changes: 1 addition & 4 deletions payloads/v9/channel.ts
Expand Up @@ -50,10 +50,7 @@ export type TextChannelType =
| ChannelType.GuildForum
| ChannelType.GuildVoice;

export type GuildChannelType = Exclude<
TextChannelType | ChannelType.GuildVoice | ChannelType.GuildStageVoice | ChannelType.GuildAnnouncement,
ChannelType.DM | ChannelType.GroupDM
>;
export type GuildChannelType = Exclude<ChannelType, ChannelType.DM | ChannelType.GroupDM>;

export interface APITextBasedChannel<T extends ChannelType> extends APIChannelBase<T> {
/**
Expand Down

1 comment on commit 815c68f

@vercel
Copy link

@vercel vercel bot commented on 815c68f Sep 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.