utils.lookupUser: fix one result returning lookup object

This commit is contained in:
Cynthia Foxwell 2021-07-28 11:49:15 -06:00
parent adf4e57405
commit 1cd8a6052f
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ async function lookupUser(msg, str, filter) {
if (selection.length == 0) {
return "No results";
} else if (selection.length == 1) {
return selection[0];
return selection[0].value;
} else {
selection.splice(20);