Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove store channels #364

Merged
merged 1 commit into from
Mar 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 1 addition & 13 deletions deno/payloads/v10/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ export type TextChannelType =
| ChannelType.GuildText;

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

Expand Down Expand Up @@ -129,7 +125,6 @@ export interface APITextChannel extends APIGuildTextChannel<ChannelType.GuildTex

export type APINewsChannel = APIGuildTextChannel<ChannelType.GuildNews>;
export type APIGuildCategoryChannel = APIGuildChannel<ChannelType.GuildCategory>;
export type APIGuildStoreChannel = APIGuildChannel<ChannelType.GuildStore>;

export interface APIVoiceChannel extends APIGuildChannel<ChannelType.GuildStageVoice | ChannelType.GuildVoice> {
/**
Expand Down Expand Up @@ -232,7 +227,6 @@ export type APIChannel =
| APIDMChannel
| APITextChannel
| APINewsChannel
| APIGuildStoreChannel
| APIVoiceChannel
| APIGuildCategoryChannel
| APIThreadChannel
Expand Down Expand Up @@ -270,12 +264,6 @@ export enum ChannelType {
* See https://support.discord.com/hc/en-us/articles/360032008192
*/
GuildNews,
/**
* A channel in which game developers can sell their game on Discord
*
* See https://discord.com/developers/docs/game-and-server-management/special-channels
*/
GuildStore,
/**
* A thread channel (public) within a Guild News channel
*/
Expand Down
14 changes: 1 addition & 13 deletions deno/payloads/v9/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ export type TextChannelType =
| ChannelType.GuildText;

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

Expand Down Expand Up @@ -129,7 +125,6 @@ export interface APITextChannel extends APIGuildTextChannel<ChannelType.GuildTex

export type APINewsChannel = APIGuildTextChannel<ChannelType.GuildNews>;
export type APIGuildCategoryChannel = APIGuildChannel<ChannelType.GuildCategory>;
export type APIGuildStoreChannel = APIGuildChannel<ChannelType.GuildStore>;

export interface APIVoiceChannel extends APIGuildChannel<ChannelType.GuildStageVoice | ChannelType.GuildVoice> {
/**
Expand Down Expand Up @@ -232,7 +227,6 @@ export type APIChannel =
| APIDMChannel
| APITextChannel
| APINewsChannel
| APIGuildStoreChannel
| APIVoiceChannel
| APIGuildCategoryChannel
| APIThreadChannel
Expand Down Expand Up @@ -270,12 +264,6 @@ export enum ChannelType {
* See https://support.discord.com/hc/en-us/articles/360032008192
*/
GuildNews,
/**
* A channel in which game developers can sell their game on Discord
*
* See https://discord.com/developers/docs/game-and-server-management/special-channels
*/
GuildStore,
/**
* A thread channel (public) within a Guild News channel
*/
Expand Down
4 changes: 2 additions & 2 deletions deno/rest/v10/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export type RESTPatchAPIChannelJSONBody = AddUndefinedToPossiblyUndefinedPropert
/**
* Whether the channel is nsfw
*
* Channel types: text, news, store
* Channel types: text, news
*/
nsfw?: boolean | null;
/**
Expand Down Expand Up @@ -96,7 +96,7 @@ export type RESTPatchAPIChannelJSONBody = AddUndefinedToPossiblyUndefinedPropert
/**
* ID of the new parent category for a channel
*
* Channel types: text, news, store, voice
* Channel types: text, news, voice
*/
parent_id?: Snowflake | null;
/**
Expand Down
4 changes: 2 additions & 2 deletions deno/rest/v9/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export type RESTPatchAPIChannelJSONBody = AddUndefinedToPossiblyUndefinedPropert
/**
* Whether the channel is nsfw
*
* Channel types: text, news, store
* Channel types: text, news
*/
nsfw?: boolean | null;
/**
Expand Down Expand Up @@ -96,7 +96,7 @@ export type RESTPatchAPIChannelJSONBody = AddUndefinedToPossiblyUndefinedPropert
/**
* ID of the new parent category for a channel
*
* Channel types: text, news, store, voice
* Channel types: text, news, voice
*/
parent_id?: Snowflake | null;
/**
Expand Down
14 changes: 1 addition & 13 deletions payloads/v10/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ export type TextChannelType =
| ChannelType.GuildText;

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

Expand Down Expand Up @@ -129,7 +125,6 @@ export interface APITextChannel extends APIGuildTextChannel<ChannelType.GuildTex

export type APINewsChannel = APIGuildTextChannel<ChannelType.GuildNews>;
export type APIGuildCategoryChannel = APIGuildChannel<ChannelType.GuildCategory>;
export type APIGuildStoreChannel = APIGuildChannel<ChannelType.GuildStore>;

export interface APIVoiceChannel extends APIGuildChannel<ChannelType.GuildStageVoice | ChannelType.GuildVoice> {
/**
Expand Down Expand Up @@ -232,7 +227,6 @@ export type APIChannel =
| APIDMChannel
| APITextChannel
| APINewsChannel
| APIGuildStoreChannel
| APIVoiceChannel
| APIGuildCategoryChannel
| APIThreadChannel
Expand Down Expand Up @@ -270,12 +264,6 @@ export enum ChannelType {
* See https://support.discord.com/hc/en-us/articles/360032008192
*/
GuildNews,
/**
* A channel in which game developers can sell their game on Discord
*
* See https://discord.com/developers/docs/game-and-server-management/special-channels
*/
GuildStore,
/**
* A thread channel (public) within a Guild News channel
*/
Expand Down
14 changes: 1 addition & 13 deletions payloads/v9/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ export type TextChannelType =
| ChannelType.GuildText;

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

Expand Down Expand Up @@ -129,7 +125,6 @@ export interface APITextChannel extends APIGuildTextChannel<ChannelType.GuildTex

export type APINewsChannel = APIGuildTextChannel<ChannelType.GuildNews>;
export type APIGuildCategoryChannel = APIGuildChannel<ChannelType.GuildCategory>;
export type APIGuildStoreChannel = APIGuildChannel<ChannelType.GuildStore>;

export interface APIVoiceChannel extends APIGuildChannel<ChannelType.GuildStageVoice | ChannelType.GuildVoice> {
/**
Expand Down Expand Up @@ -232,7 +227,6 @@ export type APIChannel =
| APIDMChannel
| APITextChannel
| APINewsChannel
| APIGuildStoreChannel
| APIVoiceChannel
| APIGuildCategoryChannel
| APIThreadChannel
Expand Down Expand Up @@ -270,12 +264,6 @@ export enum ChannelType {
* See https://support.discord.com/hc/en-us/articles/360032008192
*/
GuildNews,
/**
* A channel in which game developers can sell their game on Discord
*
* See https://discord.com/developers/docs/game-and-server-management/special-channels
*/
GuildStore,
/**
* A thread channel (public) within a Guild News channel
*/
Expand Down
4 changes: 2 additions & 2 deletions rest/v10/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export type RESTPatchAPIChannelJSONBody = AddUndefinedToPossiblyUndefinedPropert
/**
* Whether the channel is nsfw
*
* Channel types: text, news, store
* Channel types: text, news
*/
nsfw?: boolean | null;
/**
Expand Down Expand Up @@ -96,7 +96,7 @@ export type RESTPatchAPIChannelJSONBody = AddUndefinedToPossiblyUndefinedPropert
/**
* ID of the new parent category for a channel
*
* Channel types: text, news, store, voice
* Channel types: text, news, voice
*/
parent_id?: Snowflake | null;
/**
Expand Down
4 changes: 2 additions & 2 deletions rest/v9/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export type RESTPatchAPIChannelJSONBody = AddUndefinedToPossiblyUndefinedPropert
/**
* Whether the channel is nsfw
*
* Channel types: text, news, store
* Channel types: text, news
*/
nsfw?: boolean | null;
/**
Expand Down Expand Up @@ -96,7 +96,7 @@ export type RESTPatchAPIChannelJSONBody = AddUndefinedToPossiblyUndefinedPropert
/**
* ID of the new parent category for a channel
*
* Channel types: text, news, store, voice
* Channel types: text, news, voice
*/
parent_id?: Snowflake | null;
/**
Expand Down