Fixed IRole typereader ref #229

This commit is contained in:
Master Kwoth
2016-08-27 03:27:10 +02:00
committed by GitHub
parent 99b6e8f07b
commit 2cd97bd594

View File

@@ -32,7 +32,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));
return Task.FromResult(TypeReaderResult.FromSuccess(results.Values));
}
return Task.FromResult(TypeReaderResult.FromError(CommandError.ObjectNotFound, "Role not found."));
}