Browse Source

Fixes RoleTypeReader

pull/631/head
Confruggy GitHub 8 years ago
parent
commit
0a1477626e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Commands/Readers/RoleTypeReader.cs

+ 1
- 1
src/Discord.Net.Commands/Readers/RoleTypeReader.cs View File

@@ -31,7 +31,7 @@ namespace Discord.Commands
AddResult(results, role as T, role.Name == input ? 0.80f : 0.70f);

if (results.Count > 0)
return Task.FromResult(TypeReaderResult.FromSuccess(results.Values));
return Task.FromResult(TypeReaderResult.FromSuccess(results.Values.ToReadOnlyCollection()));
}
return Task.FromResult(TypeReaderResult.FromError(CommandError.ObjectNotFound, "Role not found."));
}


Loading…
Cancel
Save