Mark ChannelHelper.IsNsfw Obsolete

Discord no longer treats channels prefixed with 'nsfw' as NSFW,
so we no longer need to have this check.
This commit is contained in:
FiniteReality
2018-05-28 17:12:28 +01:00
parent 237ad0f867
commit 683b3f2701
3 changed files with 7 additions and 5 deletions

View File

@@ -338,8 +338,10 @@ namespace Discord.Rest
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-");
}