diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-03-14 21:12:17 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-03-14 21:12:17 -0400 |
commit | 977fbe4741ff141f0d28d5fae18f6e08bedce782 (patch) | |
tree | ec427177be4de7e4168cf58c674e71bdc977c47f | |
parent | 71eea4f71b40053e88eb321ad94179af664a6f62 (diff) | |
download | tanzanite-977fbe4741ff141f0d28d5fae18f6e08bedce782.tar.gz tanzanite-977fbe4741ff141f0d28d5fae18f6e08bedce782.tar.bz2 tanzanite-977fbe4741ff141f0d28d5fae18f6e08bedce782.zip |
fix(removeExpiredPunishments): cannot resolve user
-rw-r--r-- | src/tasks/removeExpiredPunishements.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tasks/removeExpiredPunishements.ts b/src/tasks/removeExpiredPunishements.ts index b1ca042..cba939e 100644 --- a/src/tasks/removeExpiredPunishements.ts +++ b/src/tasks/removeExpiredPunishements.ts @@ -38,7 +38,7 @@ export default class RemoveExpiredPunishmentsTask extends BushTask { case ActivePunishmentType.BAN: { assert(user); const result = await guild.bushUnban({ user: user, reason: 'Punishment expired' }); - if (['success', 'user not banned'].includes(result)) await entry.destroy(); + if (['success', 'user not banned', 'cannot resolve user'].includes(result)) await entry.destroy(); else throw new Error(result); void client.logger.verbose(`removeExpiredPunishments`, `Unbanned ${entry.user}.`); break; |