Removed ArgumentNullException from FindChannels

This commit is contained in:
Master Kwoth
2016-02-02 17:29:22 +01:00
parent d53d91144c
commit 82c73401bd

View File

@@ -270,7 +270,6 @@ namespace Discord
public IEnumerable<Channel> FindChannels(string name, ChannelType type = null, bool exactMatch = false)
{
if (name == null) throw new ArgumentNullException(nameof(name));
if (type == null) throw new ArgumentNullException(nameof(type));
return _channels.Select(x => x.Value).Find(name, type, exactMatch);
}