utils.lookupUser: fix one result returning lookup object
This commit is contained in:
parent
adf4e57405
commit
1cd8a6052f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue