diff --git a/src/Disqord.Core/Entities/Transient/Channels/Common/TransientChannel.cs b/src/Disqord.Core/Entities/Transient/Channels/Common/TransientChannel.cs index 0618e0ce9..4851754c7 100644 --- a/src/Disqord.Core/Entities/Transient/Channels/Common/TransientChannel.cs +++ b/src/Disqord.Core/Entities/Transient/Channels/Common/TransientChannel.cs @@ -43,6 +43,7 @@ public override string ToString() case ChannelType.Stage: case ChannelType.Directory: case ChannelType.Forum: + case ChannelType.Media: return TransientGuildChannel.Create(client, model); } diff --git a/src/Disqord.Core/Entities/Transient/Channels/Guild/Common/TransientGuildChannel.cs b/src/Disqord.Core/Entities/Transient/Channels/Guild/Common/TransientGuildChannel.cs index d7989987e..a255a02ac 100644 --- a/src/Disqord.Core/Entities/Transient/Channels/Guild/Common/TransientGuildChannel.cs +++ b/src/Disqord.Core/Entities/Transient/Channels/Guild/Common/TransientGuildChannel.cs @@ -60,6 +60,7 @@ protected TransientGuildChannel(IClient client, ChannelJsonModel model) return new TransientStageChannel(client, model); case ChannelType.Forum: + case ChannelType.Media: return new TransientForumChannel(client, model); } diff --git a/src/Disqord.Core/Enums/ChannelType.cs b/src/Disqord.Core/Enums/ChannelType.cs index 6826efc48..f8976bd18 100644 --- a/src/Disqord.Core/Enums/ChannelType.cs +++ b/src/Disqord.Core/Enums/ChannelType.cs @@ -24,5 +24,7 @@ public enum ChannelType : byte Directory = 14, - Forum = 15 -} \ No newline at end of file + Forum = 15, + + Media = 16 +} diff --git a/src/Disqord.Core/Enums/GuildChannelFlags.cs b/src/Disqord.Core/Enums/GuildChannelFlags.cs index b3202703e..a445c70d1 100644 --- a/src/Disqord.Core/Enums/GuildChannelFlags.cs +++ b/src/Disqord.Core/Enums/GuildChannelFlags.cs @@ -16,5 +16,10 @@ public enum GuildChannelFlags /// /// The forum channel requires a tag to be specified for threads created in it. /// - RequiresTag = 1 << 4 + RequiresTag = 1 << 4, + + /// + /// The media channel hides the embedded media download options for media in the threads created in it. + /// + HideMediaDownloadOptions = 1 << 15 } diff --git a/src/Disqord.Gateway/Entities/Cached/Channels/Guild/Common/CachedGuildChannel.cs b/src/Disqord.Gateway/Entities/Cached/Channels/Guild/Common/CachedGuildChannel.cs index f502d8eb7..66c73b450 100644 --- a/src/Disqord.Gateway/Entities/Cached/Channels/Guild/Common/CachedGuildChannel.cs +++ b/src/Disqord.Gateway/Entities/Cached/Channels/Guild/Common/CachedGuildChannel.cs @@ -68,6 +68,7 @@ public static CachedGuildChannel Create(IGatewayClient client, ChannelJsonModel return new CachedStageChannel(client, model); case ChannelType.Forum: + case ChannelType.Media: return new CachedForumChannel(client, model); }