diff options
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 |