From b08f2e34dbe9afccca6f565db6c7b27a21453d85 Mon Sep 17 00:00:00 2001 From: Vlad Frangu Date: Mon, 5 Sep 2022 14:44:51 +0300 Subject: [PATCH] fix(ChannelType): bring back old names --- deno/payloads/v10/channel.ts | 29 +++++++++++++++++++++++++++++ deno/payloads/v9/channel.ts | 28 ++++++++++++++++++++++++++++ payloads/v10/channel.ts | 29 +++++++++++++++++++++++++++++ payloads/v9/channel.ts | 28 ++++++++++++++++++++++++++++ 4 files changed, 114 insertions(+) diff --git a/deno/payloads/v10/channel.ts b/deno/payloads/v10/channel.ts index 60ff146f7..1764a6339 100644 --- a/deno/payloads/v10/channel.ts +++ b/deno/payloads/v10/channel.ts @@ -309,6 +309,35 @@ export enum ChannelType { * A channel that can only contain threads */ GuildForum, + + // EVERYTHING BELOW THIS LINE SHOULD BE OLD NAMES FOR RENAMED ENUM MEMBERS // + + /** + * A channel that users can follow and crosspost into their own guild + * + * @deprecated This is the old name for {@apilink ChannelType#GuildAnnouncement} + * + * See https://support.discord.com/hc/en-us/articles/360032008192 + */ + GuildNews = 5, + /** + * A temporary sub-channel within a Guild Announcement channel + * + * @deprecated This is the old name for {@apilink ChannelType#AnnouncementThread} + */ + GuildNewsThread = 10, + /** + * A temporary sub-channel within a Guild Text channel + * + * @deprecated This is the old name for {@apilink ChannelType#PublicThread} + */ + GuildPublicThread = 11, + /** + * A temporary sub-channel within a Guild Text channel that is only viewable by those invited and those with the Manage Threads permission + * + * @deprecated This is the old name for {@apilink ChannelType#PrivateThread} + */ + GuildPrivateThread = 12, } export enum VideoQualityMode { diff --git a/deno/payloads/v9/channel.ts b/deno/payloads/v9/channel.ts index 7f8524834..e0f8cc175 100644 --- a/deno/payloads/v9/channel.ts +++ b/deno/payloads/v9/channel.ts @@ -309,6 +309,34 @@ export enum ChannelType { * A channel that can only contain threads */ GuildForum, + + // EVERYTHING BELOW THIS LINE SHOULD BE OLD NAMES FOR RENAMED ENUM MEMBERS + /** + * A channel that users can follow and crosspost into their own guild + * + * @deprecated This is the old name for {@apilink ChannelType#GuildAnnouncement} + * + * See https://support.discord.com/hc/en-us/articles/360032008192 + */ + GuildNews = 5, + /** + * A temporary sub-channel within a Guild Announcement channel + * + * @deprecated This is the old name for {@apilink ChannelType#AnnouncementThread} + */ + GuildNewsThread = 10, + /** + * A temporary sub-channel within a Guild Text channel + * + * @deprecated This is the old name for {@apilink ChannelType#PublicThread} + */ + GuildPublicThread = 11, + /** + * A temporary sub-channel within a Guild Text channel that is only viewable by those invited and those with the Manage Threads permission + * + * @deprecated This is the old name for {@apilink ChannelType#PrivateThread} + */ + GuildPrivateThread = 12, } export enum VideoQualityMode { diff --git a/payloads/v10/channel.ts b/payloads/v10/channel.ts index aded8a833..c9e38afe3 100644 --- a/payloads/v10/channel.ts +++ b/payloads/v10/channel.ts @@ -309,6 +309,35 @@ export enum ChannelType { * A channel that can only contain threads */ GuildForum, + + // EVERYTHING BELOW THIS LINE SHOULD BE OLD NAMES FOR RENAMED ENUM MEMBERS // + + /** + * A channel that users can follow and crosspost into their own guild + * + * @deprecated This is the old name for {@apilink ChannelType#GuildAnnouncement} + * + * See https://support.discord.com/hc/en-us/articles/360032008192 + */ + GuildNews = 5, + /** + * A temporary sub-channel within a Guild Announcement channel + * + * @deprecated This is the old name for {@apilink ChannelType#AnnouncementThread} + */ + GuildNewsThread = 10, + /** + * A temporary sub-channel within a Guild Text channel + * + * @deprecated This is the old name for {@apilink ChannelType#PublicThread} + */ + GuildPublicThread = 11, + /** + * A temporary sub-channel within a Guild Text channel that is only viewable by those invited and those with the Manage Threads permission + * + * @deprecated This is the old name for {@apilink ChannelType#PrivateThread} + */ + GuildPrivateThread = 12, } export enum VideoQualityMode { diff --git a/payloads/v9/channel.ts b/payloads/v9/channel.ts index a7cdfdcad..78c18eb2f 100644 --- a/payloads/v9/channel.ts +++ b/payloads/v9/channel.ts @@ -309,6 +309,34 @@ export enum ChannelType { * A channel that can only contain threads */ GuildForum, + + // EVERYTHING BELOW THIS LINE SHOULD BE OLD NAMES FOR RENAMED ENUM MEMBERS + /** + * A channel that users can follow and crosspost into their own guild + * + * @deprecated This is the old name for {@apilink ChannelType#GuildAnnouncement} + * + * See https://support.discord.com/hc/en-us/articles/360032008192 + */ + GuildNews = 5, + /** + * A temporary sub-channel within a Guild Announcement channel + * + * @deprecated This is the old name for {@apilink ChannelType#AnnouncementThread} + */ + GuildNewsThread = 10, + /** + * A temporary sub-channel within a Guild Text channel + * + * @deprecated This is the old name for {@apilink ChannelType#PublicThread} + */ + GuildPublicThread = 11, + /** + * A temporary sub-channel within a Guild Text channel that is only viewable by those invited and those with the Manage Threads permission + * + * @deprecated This is the old name for {@apilink ChannelType#PrivateThread} + */ + GuildPrivateThread = 12, } export enum VideoQualityMode {