-
-
Notifications
You must be signed in to change notification settings - Fork 741
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] Media channel support (#2725)
* initial commit * oops * another typo -_- * Update AttachmentFlags.cs Made this on my phone lol * Update AttachmentFlags.cs * -line * initial impl * some guild methods for media (and forum) channels * file attachment can be a thumbnail * can't edit media channel layout * updatess * Update ChannelPermissions.cs * typo
- Loading branch information
Showing
22 changed files
with
468 additions
and
52 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,75 @@ | ||
namespace Discord | ||
namespace Discord; | ||
|
||
/// <summary> Defines the types of channels. </summary> | ||
public enum ChannelType | ||
{ | ||
/// <summary> Defines the types of channels. </summary> | ||
public enum ChannelType | ||
{ | ||
/// <summary> The channel is a text channel. </summary> | ||
Text = 0, | ||
/// <summary> The channel is a Direct Message channel. </summary> | ||
DM = 1, | ||
/// <summary> The channel is a voice channel. </summary> | ||
Voice = 2, | ||
/// <summary> The channel is a group channel. </summary> | ||
Group = 3, | ||
/// <summary> The channel is a category channel. </summary> | ||
Category = 4, | ||
/// <summary> The channel is a news channel. </summary> | ||
News = 5, | ||
/// <summary> The channel is a store channel. </summary> | ||
Store = 6, | ||
/// <summary> The channel is a temporary thread channel under a news channel. </summary> | ||
NewsThread = 10, | ||
/// <summary> The channel is a temporary thread channel under a text channel. </summary> | ||
PublicThread = 11, | ||
/// <summary> The channel is a private temporary thread channel under a text channel. </summary> | ||
PrivateThread = 12, | ||
/// <summary> The channel is a stage voice channel. </summary> | ||
Stage = 13, | ||
/// <summary> The channel is a guild directory used in hub servers. (Unreleased)</summary> | ||
GuildDirectory = 14, | ||
/// <summary> The channel is a forum channel containing multiple threads. </summary> | ||
Forum = 15 | ||
} | ||
/// <summary> | ||
/// The channel is a text channel. | ||
/// </summary> | ||
Text = 0, | ||
|
||
/// <summary> | ||
/// The channel is a Direct Message channel. | ||
/// </summary> | ||
DM = 1, | ||
|
||
/// <summary> | ||
/// The channel is a voice channel. | ||
/// </summary> | ||
Voice = 2, | ||
|
||
/// <summary> | ||
/// The channel is a group channel. | ||
/// </summary> | ||
Group = 3, | ||
|
||
/// <summary> | ||
/// The channel is a category channel. | ||
/// </summary> | ||
Category = 4, | ||
|
||
/// <summary> | ||
/// The channel is a news channel. | ||
/// </summary> | ||
News = 5, | ||
|
||
/// <summary> | ||
/// The channel is a store channel. | ||
/// </summary> | ||
Store = 6, | ||
|
||
/// <summary> | ||
/// The channel is a temporary thread channel under a news channel. | ||
/// </summary> | ||
NewsThread = 10, | ||
|
||
/// <summary> | ||
/// The channel is a temporary thread channel under a text channel. | ||
/// </summary> | ||
PublicThread = 11, | ||
|
||
/// <summary> | ||
/// The channel is a private temporary thread channel under a text channel. | ||
/// </summary> | ||
PrivateThread = 12, | ||
|
||
/// <summary> | ||
/// The channel is a stage voice channel. | ||
/// </summary> | ||
Stage = 13, | ||
|
||
/// <summary> | ||
/// The channel is a guild directory used in hub servers. (Unreleased) | ||
/// </summary> | ||
GuildDirectory = 14, | ||
|
||
/// <summary> | ||
/// The channel is a forum channel containing multiple threads. | ||
/// </summary> | ||
Forum = 15, | ||
|
||
/// <summary> | ||
/// The channel is a media channel containing multiple threads. | ||
/// </summary> | ||
Media = 16, | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Discord; | ||
|
||
/// <summary> | ||
/// Represents a media channel in a guild that can create posts. | ||
/// </summary> | ||
public interface IMediaChannel : IForumChannel | ||
{ | ||
|
||
} |
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
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
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
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.