Fix resolvedUser and resolvedUserLoose types
This commit is contained in:
parent
ab83e83d42
commit
815b6ce4ac
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ export const customArgumentTypes = {
|
|||
},
|
||||
|
||||
async resolvedUser(value, msg, bot: Client) {
|
||||
const result = resolveUser(bot, value);
|
||||
const result = await resolveUser(bot, value);
|
||||
if (result == null || result instanceof UnknownUser) {
|
||||
throw new CommandArgumentTypeError(`User \`${value}\` was not found`);
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ export const customArgumentTypes = {
|
|||
},
|
||||
|
||||
async resolvedUserLoose(value, msg, bot: Client) {
|
||||
const result = resolveUser(bot, value);
|
||||
const result = await resolveUser(bot, value);
|
||||
if (result == null) {
|
||||
throw new CommandArgumentTypeError(`Invalid user: ${value}`);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue