diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-05-28 17:37:04 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-05-28 17:37:04 -0400 |
commit | f1cdbd260c6c2249fc0d765949d44d889bcaedc8 (patch) | |
tree | a91883fc6de76d739f99c795f1248474df6f1efc /src/tasks/unban.ts | |
parent | f3cde793e778d1dc29b704d9cce560c6e929e6e8 (diff) | |
download | tanzanite-f1cdbd260c6c2249fc0d765949d44d889bcaedc8.tar.gz tanzanite-f1cdbd260c6c2249fc0d765949d44d889bcaedc8.tar.bz2 tanzanite-f1cdbd260c6c2249fc0d765949d44d889bcaedc8.zip |
I can't read anything
Diffstat (limited to 'src/tasks/unban.ts')
-rw-r--r-- | src/tasks/unban.ts | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/tasks/unban.ts b/src/tasks/unban.ts index 6b9d82e..564a2a3 100644 --- a/src/tasks/unban.ts +++ b/src/tasks/unban.ts @@ -23,9 +23,7 @@ export default class UnbanTask extends BushTask { ] } }); - this.client.logger.verbose( - chalk.cyan(`Queried bans, found ${rows.length} expired bans.`) - ); + this.client.logger.verbose(chalk.cyan(`Queried bans, found ${rows.length} expired bans.`)); for (const row of rows) { const guild = this.client.guilds.cache.get(row.guild); if (!guild) { @@ -33,10 +31,7 @@ export default class UnbanTask extends BushTask { continue; } try { - await guild.members.unban( - row.user, - `Unbanning user because tempban expired` - ); + await guild.members.unban(row.user, `Unbanning user because tempban expired`); } catch (e) { if (e instanceof DiscordAPIError) { // Member not banned, ignore |