-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added media channel, restructure forum channel, refactor forum tag ->…
… channel tag
- Loading branch information
1 parent
2f2d8b0
commit da1e01a
Showing
16 changed files
with
168 additions
and
126 deletions.
There are no files selected for viewing
28 changes: 0 additions & 28 deletions
28
src/Disqord.Core/Entities/Core/Channels/Guild/Forums/IForumChannel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/Disqord.Core/Entities/Core/Channels/Guild/IMediaChannel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace Disqord; | ||
|
||
/// <summary> | ||
/// Represents a guild media channel. | ||
/// </summary> | ||
public interface IMediaChannel : IThreadParentChannel, ITopicChannel, ISlowmodeChannel | ||
{ | ||
/// <summary> | ||
/// Gets the ID of the last thread created in this channel. | ||
/// </summary> | ||
Snowflake? LastThreadId { get; } | ||
|
||
/// <summary> | ||
/// Gets the available tags that can be applied to threads in this channel. | ||
/// </summary> | ||
IReadOnlyList<IChannelTag> Tags { get; } | ||
|
||
/// <summary> | ||
/// Gets the emoji that can be reacted with by default to threads in this channel. | ||
/// </summary> | ||
IEmoji? DefaultReactionEmoji { get; } | ||
|
||
/// <summary> | ||
/// Gets the default slowmode applied to threads upon their creation in this channel. | ||
/// </summary> | ||
TimeSpan DefaultThreadSlowmode { get; } | ||
|
||
/// <summary> | ||
/// Gets the default sort order of posts in this channel. | ||
/// </summary> | ||
ForumSortOrder? DefaultSortOrder { get; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/Disqord.Core/Entities/Transient/Channels/Guild/TransientForumChannel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using Disqord.Models; | ||
using Qommon; | ||
|
||
namespace Disqord; | ||
|
||
/// <inheritdoc cref="IForumChannel"/> | ||
public class TransientForumChannel : TransientMediaChannel, IForumChannel | ||
{ | ||
/// <inheritdoc/> | ||
public ForumLayout DefaultLayout => Model.DefaultForumLayout.GetValueOrDefault(); | ||
|
||
public TransientForumChannel(IClient client, ChannelJsonModel model) | ||
: base(client, model) | ||
{ } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.