Fixes ChannelTypeReader (#630)
This commit is contained in:
committed by
RogueException
parent
4ca273dd4a
commit
3365bbb043
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user