mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-25 18:25:03 +00:00
Update backend/src/plugins/ModActions/functions/banUserId.ts
Co-authored-by: Almeida <almeidx@pm.me>
This commit is contained in:
parent
a1b8dcc30c
commit
7a7f0733e1
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ export async function banUserId(
|
|||
error: "Invalid user",
|
||||
};
|
||||
}
|
||||
if (reason) reason = parseReason(config, reason);
|
||||
reason &&= parseReason(config, reason);
|
||||
|
||||
// Attempt to message the user *before* banning them, as doing it after may not be possible
|
||||
let notifyResult: UserNotificationResult = { method: null, success: true };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue