diff options
Diffstat (limited to 'src')
-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; |