Removed IChannel#Nsfw, added to ITextChannel
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user