Skip to content

Commit

Permalink
chore: build deno
Browse files Browse the repository at this point in the history
  • Loading branch information
suneettipirneni committed Sep 21, 2021
1 parent 84cb495 commit b0164f7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
6 changes: 4 additions & 2 deletions deno/payloads/v8/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export interface APIChannelBase<T extends ChannelType> extends APIPartialChannel

export type TextBasedChannels = ChannelType.DM | ChannelType.GroupDM | ChannelType.GuildNews | ChannelType.GuildText;

export type APIGuildChannel = Exclude<
export type GuildChannels = Exclude<
TextBasedChannels | ChannelType.GuildVoice | ChannelType.GuildStageVoice,
ChannelType.DM | ChannelType.GroupDM
>;
Expand Down Expand Up @@ -84,7 +84,9 @@ export interface APIGuildChannel<T extends ChannelType> extends APIChannelBase<T

export type GuildTextChannelTypes = Exclude<TextBasedChannels, ChannelType.DM | ChannelType.GroupDM>;

export interface APIGuildTextChannel<T extends GuildTextChannels> extends APITextBasedChannel<T>, APIGuildChannel<T> {
export interface APIGuildTextChannel<T extends GuildTextChannelTypes>
extends APITextBasedChannel<T>,
APIGuildChannel<T> {
/**
* The channel topic (0-1024 characters)
*/
Expand Down
6 changes: 4 additions & 2 deletions deno/payloads/v9/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,11 @@ export interface APIGuildChannel<T extends ChannelType> extends APIChannelBase<T
nsfw?: boolean;
}

export type GuildTextChannels = Exclude<TextBasedChannels, ChannelType.DM | ChannelType.GroupDM>;
export type GuildTextChannelTypes = Exclude<TextBasedChannels, ChannelType.DM | ChannelType.GroupDM>;

export interface APIGuildTextChannel<T extends GuildTextChannels> extends APITextBasedChannel<T>, APIGuildChannel<T> {
export interface APIGuildTextChannel<T extends GuildTextChannelTypes>
extends APITextBasedChannel<T>,
APIGuildChannel<T> {
/**
* Default duration for newly created threads, in minutes, to automatically archive the thread after recent activity
*/
Expand Down
6 changes: 4 additions & 2 deletions payloads/v8/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,11 @@ export interface APIGuildChannel<T extends ChannelType> extends APIChannelBase<T
nsfw?: boolean;
}

export type GuildTextChannels = Exclude<TextBasedChannels, ChannelType.DM | ChannelType.GroupDM>;
export type GuildTextChannelTypes = Exclude<TextBasedChannels, ChannelType.DM | ChannelType.GroupDM>;

export interface APIGuildTextChannel<T extends GuildTextChannels> extends APITextBasedChannel<T>, APIGuildChannel<T> {
export interface APIGuildTextChannel<T extends GuildTextChannelTypes>
extends APITextBasedChannel<T>,
APIGuildChannel<T> {
/**
* The channel topic (0-1024 characters)
*/
Expand Down
6 changes: 4 additions & 2 deletions payloads/v9/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,11 @@ export interface APIGuildChannel<T extends ChannelType> extends APIChannelBase<T
nsfw?: boolean;
}

export type GuildTextChannels = Exclude<TextBasedChannels, ChannelType.DM | ChannelType.GroupDM>;
export type GuildTextChannelTypes = Exclude<TextBasedChannels, ChannelType.DM | ChannelType.GroupDM>;

export interface APIGuildTextChannel<T extends GuildTextChannels> extends APITextBasedChannel<T>, APIGuildChannel<T> {
export interface APIGuildTextChannel<T extends GuildTextChannelTypes>
extends APITextBasedChannel<T>,
APIGuildChannel<T> {
/**
* Default duration for newly created threads, in minutes, to automatically archive the thread after recent activity
*/
Expand Down

0 comments on commit b0164f7

Please sign in to comment.