diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-09-05 20:24:50 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-09-05 20:24:50 -0400 |
commit | c4c1d9ffeb179e208792c88dd099caea5030581b (patch) | |
tree | dc075bda115de5f6cec925c398f3c9547d1bad55 /src/tasks | |
parent | c238b0279c7686ca45506b0909e376f241cf0e30 (diff) | |
download | tanzanite-c4c1d9ffeb179e208792c88dd099caea5030581b.tar.gz tanzanite-c4c1d9ffeb179e208792c88dd099caea5030581b.tar.bz2 tanzanite-c4c1d9ffeb179e208792c88dd099caea5030581b.zip |
add moderation logging, fixes, hide modlog, jank
Diffstat (limited to 'src/tasks')
-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 49267f5..0610718 100644 --- a/src/tasks/removeExpiredPunishements.ts +++ b/src/tasks/removeExpiredPunishements.ts @@ -33,7 +33,7 @@ export default class RemoveExpiredPunishmentsTask extends BushTask { switch (entry.type) { case ActivePunishmentType.BAN: { if (!user) throw new Error(`user is undefined`); - const result = await guild.unban({ user: user, reason: 'Punishment expired.' }); + const result = await guild.bushUnban({ user: user, reason: 'Punishment expired.' }); if (['success', 'user not banned'].includes(result)) await entry.destroy(); else throw new Error(result); void client.logger.verbose(`removeExpiredPunishments`, `Unbanned ${entry.user}.`); |