Browse Source

Added missing implementations

pull/794/head
v3Monsta 8 years ago
parent
commit
eb1b04df92
2 changed files with 5 additions and 0 deletions
  1. +2
    -0
      src/Discord.Net.Rest/Entities/Channels/RestTextChannel.cs
  2. +3
    -0
      src/Discord.Net.WebSocket/Entities/Channels/SocketTextChannel.cs

+ 2
- 0
src/Discord.Net.Rest/Entities/Channels/RestTextChannel.cs View File

@@ -75,6 +75,8 @@ namespace Discord.Rest


private string DebuggerDisplay => $"{Name} ({Id}, Text)"; private string DebuggerDisplay => $"{Name} ({Id}, Text)";


bool ITextChannel.IsNsfw => ChannelHelper.IsNsfw(this);

//IMessageChannel //IMessageChannel
async Task<IMessage> IMessageChannel.GetMessageAsync(ulong id, CacheMode mode, RequestOptions options) async Task<IMessage> IMessageChannel.GetMessageAsync(ulong id, CacheMode mode, RequestOptions options)
{ {


+ 3
- 0
src/Discord.Net.WebSocket/Entities/Channels/SocketTextChannel.cs View File

@@ -110,6 +110,9 @@ namespace Discord.WebSocket
} }
private string DebuggerDisplay => $"{Name} ({Id}, Text)"; private string DebuggerDisplay => $"{Name} ({Id}, Text)";

bool ITextChannel.IsNsfw => ChannelHelper.IsNsfw(this);

internal new SocketTextChannel Clone() => MemberwiseClone() as SocketTextChannel; internal new SocketTextChannel Clone() => MemberwiseClone() as SocketTextChannel;


//IGuildChannel //IGuildChannel


Loading…
Cancel
Save