Browse Source

Fixes ChannelTypeReader (#630)

pull/628/merge
Confruggy RogueException 8 years ago
parent
commit
3365bbb043
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Commands/Readers/ChannelTypeReader.cs

+ 1
- 1
src/Discord.Net.Commands/Readers/ChannelTypeReader.cs 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.");


Loading…
Cancel
Save