3
0
Fork 0
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:
metal 2021-09-23 12:03:22 +01:00 committed by almeidx
parent a1b8dcc30c
commit 7a7f0733e1
No known key found for this signature in database
GPG key ID: F403F80B79353CB4

View file

@ -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 };