cleanup: Remove ChannelHelper#IsNsfw

Closes #1074

This code was not referenced anywhere in the active codebase.
This commit is contained in:
Christopher F
2018-05-28 12:45:49 -04:00
parent 0c7cb73b06
commit a718a7d3c2

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-");
} }
} }