Removed IChannel#Nsfw, added to ITextChannel

This commit is contained in:
Christopher F
2017-08-29 17:26:36 -04:00
parent 5d7f2fc7ec
commit 608bc359ee
10 changed files with 14 additions and 17 deletions

View File

@@ -7,10 +7,7 @@ namespace Discord
{
/// <summary> Gets the name of this channel. </summary>
string Name { get; }
/// <summary> Checks if the channel is NSFW. </summary>
bool IsNsfw { get; }
/// <summary> Gets a collection of all users in this channel. </summary>
IAsyncEnumerable<IReadOnlyCollection<IUser>> GetUsersAsync(CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null);

View File

@@ -5,6 +5,9 @@ namespace Discord
{
public interface ITextChannel : IMessageChannel, IMentionable, IGuildChannel
{
/// <summary> Checks if the channel is NSFW. </summary>
bool IsNsfw { get; }
/// <summary> Gets the current topic for this text channel. </summary>
string Topic { get; }