mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
Fix several locations that expected resolveUser() to return null
This commit is contained in:
parent
d35564eac8
commit
b9dde47a9e
13 changed files with 35 additions and 13 deletions
|
@ -42,7 +42,7 @@ export async function muteUser(
|
|||
}
|
||||
|
||||
const user = await resolveUser(pluginData.client, userId);
|
||||
if (!user) {
|
||||
if (!user.id) {
|
||||
lock.unlock();
|
||||
throw new RecoverablePluginError(ERRORS.INVALID_USER);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue