From 25677fff43533b3b11b88f01efe98f0875014cb5 Mon Sep 17 00:00:00 2001 From: Almeida Date: Tue, 29 Mar 2022 19:29:46 +0100 Subject: [PATCH] refactor: remove store channels (#364) BREAKING CHANGE: Store channels have been removed, alongside their types --- deno/payloads/v10/channel.ts | 14 +------------- deno/payloads/v9/channel.ts | 14 +------------- deno/rest/v10/channel.ts | 4 ++-- deno/rest/v9/channel.ts | 4 ++-- payloads/v10/channel.ts | 14 +------------- payloads/v9/channel.ts | 14 +------------- rest/v10/channel.ts | 4 ++-- rest/v9/channel.ts | 4 ++-- 8 files changed, 12 insertions(+), 60 deletions(-) diff --git a/deno/payloads/v10/channel.ts b/deno/payloads/v10/channel.ts index ffa925b0a..04bd11879 100644 --- a/deno/payloads/v10/channel.ts +++ b/deno/payloads/v10/channel.ts @@ -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 >; @@ -129,7 +125,6 @@ export interface APITextChannel extends APIGuildTextChannel; export type APIGuildCategoryChannel = APIGuildChannel; -export type APIGuildStoreChannel = APIGuildChannel; export interface APIVoiceChannel extends APIGuildChannel { /** @@ -236,7 +231,6 @@ export type APIChannel = | APIDMChannel | APITextChannel | APINewsChannel - | APIGuildStoreChannel | APIVoiceChannel | APIGuildCategoryChannel | APIThreadChannel @@ -274,12 +268,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 */ diff --git a/deno/payloads/v9/channel.ts b/deno/payloads/v9/channel.ts index ffa925b0a..04bd11879 100644 --- a/deno/payloads/v9/channel.ts +++ b/deno/payloads/v9/channel.ts @@ -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 >; @@ -129,7 +125,6 @@ export interface APITextChannel extends APIGuildTextChannel; export type APIGuildCategoryChannel = APIGuildChannel; -export type APIGuildStoreChannel = APIGuildChannel; export interface APIVoiceChannel extends APIGuildChannel { /** @@ -236,7 +231,6 @@ export type APIChannel = | APIDMChannel | APITextChannel | APINewsChannel - | APIGuildStoreChannel | APIVoiceChannel | APIGuildCategoryChannel | APIThreadChannel @@ -274,12 +268,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 */ diff --git a/deno/rest/v10/channel.ts b/deno/rest/v10/channel.ts index 5cd627b04..69f7f3769 100644 --- a/deno/rest/v10/channel.ts +++ b/deno/rest/v10/channel.ts @@ -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; /** @@ -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; /** diff --git a/deno/rest/v9/channel.ts b/deno/rest/v9/channel.ts index ae9535825..9d6a281b2 100644 --- a/deno/rest/v9/channel.ts +++ b/deno/rest/v9/channel.ts @@ -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; /** @@ -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; /** diff --git a/payloads/v10/channel.ts b/payloads/v10/channel.ts index a16b5d6fc..1a689b189 100644 --- a/payloads/v10/channel.ts +++ b/payloads/v10/channel.ts @@ -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 >; @@ -129,7 +125,6 @@ export interface APITextChannel extends APIGuildTextChannel; export type APIGuildCategoryChannel = APIGuildChannel; -export type APIGuildStoreChannel = APIGuildChannel; export interface APIVoiceChannel extends APIGuildChannel { /** @@ -236,7 +231,6 @@ export type APIChannel = | APIDMChannel | APITextChannel | APINewsChannel - | APIGuildStoreChannel | APIVoiceChannel | APIGuildCategoryChannel | APIThreadChannel @@ -274,12 +268,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 */ diff --git a/payloads/v9/channel.ts b/payloads/v9/channel.ts index a16b5d6fc..1a689b189 100644 --- a/payloads/v9/channel.ts +++ b/payloads/v9/channel.ts @@ -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 >; @@ -129,7 +125,6 @@ export interface APITextChannel extends APIGuildTextChannel; export type APIGuildCategoryChannel = APIGuildChannel; -export type APIGuildStoreChannel = APIGuildChannel; export interface APIVoiceChannel extends APIGuildChannel { /** @@ -236,7 +231,6 @@ export type APIChannel = | APIDMChannel | APITextChannel | APINewsChannel - | APIGuildStoreChannel | APIVoiceChannel | APIGuildCategoryChannel | APIThreadChannel @@ -274,12 +268,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 */ diff --git a/rest/v10/channel.ts b/rest/v10/channel.ts index 3f09b7db4..7838b42e9 100644 --- a/rest/v10/channel.ts +++ b/rest/v10/channel.ts @@ -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; /** @@ -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; /** diff --git a/rest/v9/channel.ts b/rest/v9/channel.ts index 69085453f..90bc1ee82 100644 --- a/rest/v9/channel.ts +++ b/rest/v9/channel.ts @@ -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; /** @@ -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; /**