* add News channel type * remove (very outdated) todo * add [Socket/Rest]NewsChannel types * update TextChannel properties to include a Type optional parameter with validation as of writing, this feature is still only available to verified guilds, which makes it impossible for testing. * actually create the news channels when given the type * throw NotSupportedException in News channel throw a NotSupportedException whenever trying to use SlowModeInterval or anything related to overwrite permissions * make RestNewsChannel throw NotSupportedException also * remove the (untested) ability to change channel types
This commit is contained in:
committed by
Christopher F
parent
2254a99942
commit
9084c4214e
@@ -12,6 +12,8 @@ namespace Discord
|
||||
/// <summary> The channel is a group channel. </summary>
|
||||
Group = 3,
|
||||
/// <summary> The channel is a category channel. </summary>
|
||||
Category = 4
|
||||
Category = 4,
|
||||
/// <summary> The channel is a news channel. </summary>
|
||||
News = 5
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user