Browse Source

cleanup: Remove ChannelHelper#IsNsfw

Closes #1074

This code was not referenced anywhere in the active codebase.
tags/2.0
Christopher F 7 years ago
parent
commit
a718a7d3c2
1 changed files with 0 additions and 7 deletions
  1. +0
    -7
      src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs

+ 0
- 7
src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs View File

@@ -337,12 +337,5 @@ namespace Discord.Rest
author = RestUser.Create(client, guild, model, webhookId); author = RestUser.Create(client, guild, model, webhookId);
return author; return author;
} }

[Obsolete("Use channel.IsNsfw instead")]
public static bool IsNsfw(IChannel channel)
=> IsNsfw(channel.Name);
[Obsolete("Use Channel.IsNsfw instead")]
public static bool IsNsfw(string channelName) =>
channelName == "nsfw" || channelName.StartsWith("nsfw-");
} }
} }

Loading…
Cancel
Save