Skip to content

Commit

Permalink
Implement basic support
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherZane committed Dec 21, 2023
1 parent 5a65693 commit 798b43c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
6 changes: 4 additions & 2 deletions src/Disqord.Core/Enums/ChannelType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@ public enum ChannelType : byte

Directory = 14,

Forum = 15
}
Forum = 15,

Media = 16
}
7 changes: 6 additions & 1 deletion src/Disqord.Core/Enums/GuildChannelFlags.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,10 @@ public enum GuildChannelFlags
/// <summary>
/// The forum channel requires a tag to be specified for threads created in it.
/// </summary>
RequiresTag = 1 << 4
RequiresTag = 1 << 4,

/// <summary>
/// The media channel hides the embedded media download options for media in the threads created in it.
/// </summary>
HideMediaDownloadOptions = 1 << 15
}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 798b43c

Please sign in to comment.