aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-03-14 21:12:17 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-03-14 21:12:17 -0400
commit977fbe4741ff141f0d28d5fae18f6e08bedce782 (patch)
treeec427177be4de7e4168cf58c674e71bdc977c47f
parent71eea4f71b40053e88eb321ad94179af664a6f62 (diff)
downloadtanzanite-977fbe4741ff141f0d28d5fae18f6e08bedce782.tar.gz
tanzanite-977fbe4741ff141f0d28d5fae18f6e08bedce782.tar.bz2
tanzanite-977fbe4741ff141f0d28d5fae18f6e08bedce782.zip
fix(removeExpiredPunishments): cannot resolve user
-rw-r--r--src/tasks/removeExpiredPunishements.ts2
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;