Browse Source

Expose IsNsfw prop directly in ITextChannel

pull/794/head
v3Monsta 8 years ago
parent
commit
ae645d6269
2 changed files with 6 additions and 1 deletions
  1. +3
    -1
      src/Discord.Net.Core/Entities/Channels/IChannel.cs
  2. +3
    -0
      src/Discord.Net.Core/Entities/Channels/ITextChannel.cs

+ 3
- 1
src/Discord.Net.Core/Entities/Channels/IChannel.cs View File

@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Discord
@@ -8,6 +9,7 @@ namespace Discord
/// <summary> Gets the name of this channel. </summary>
string Name { get; }

[Obsolete("Deprecated, please use ITextChannel#IsNsfw instead")]
/// <summary> Checks if the channel is NSFW. </summary>
bool IsNsfw { get; }



+ 3
- 0
src/Discord.Net.Core/Entities/Channels/ITextChannel.cs View File

@@ -8,6 +8,9 @@ namespace Discord
/// <summary> Gets the current topic for this text channel. </summary>
string Topic { get; }

/// <summary> Checks if the channel is NSFW. </summary>
new bool IsNsfw { get; }

/// <summary> Modifies this text channel. </summary>
Task ModifyAsync(Action<TextChannelProperties> func, RequestOptions options = null);
}

Loading…
Cancel
Save