Fixes ChannelTypeReader (#630)

This commit is contained in:
Confruggy
2017-04-28 16:49:59 +02:00
committed by RogueException
parent 4ca273dd4a
commit 3365bbb043

View File

@@ -30,7 +30,7 @@ namespace Discord.Commands
AddResult(results, channel as T, channel.Name == input ? 0.80f : 0.70f);
if (results.Count > 0)
return TypeReaderResult.FromSuccess(results.Values);
return TypeReaderResult.FromSuccess(results.Values.ToReadOnlyCollection());
}
return TypeReaderResult.FromError(CommandError.ObjectNotFound, "Channel not found.");