aboutsummaryrefslogtreecommitdiff
path: root/src/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'src/tasks')
-rw-r--r--src/tasks/removeExpiredPunishements.ts8
-rw-r--r--src/tasks/updateCache.ts2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/tasks/removeExpiredPunishements.ts b/src/tasks/removeExpiredPunishements.ts
index 0a6e417..fc3708d 100644
--- a/src/tasks/removeExpiredPunishements.ts
+++ b/src/tasks/removeExpiredPunishements.ts
@@ -22,7 +22,7 @@ export default class RemoveExpiredPunishmentsTask extends BushTask {
}
});
- client.logger.verbose(
+ void client.logger.verbose(
`removeExpiredPunishments`,
`Queried punishments, found <<${expiredEntries.length}>> expired punishments.`
);
@@ -41,7 +41,7 @@ export default class RemoveExpiredPunishmentsTask extends BushTask {
const result = await guild.unban({ user: entry.user, reason: 'Punishment expired.' });
if (['success', 'user not banned'].includes(result)) await entry.destroy();
else throw result;
- client.logger.verbose(`removeExpiredPunishments`, `Unbanned ${entry.user}.`);
+ void client.logger.verbose(`removeExpiredPunishments`, `Unbanned ${entry.user}.`);
break;
}
case ActivePunishmentType.BLOCK: {
@@ -52,7 +52,7 @@ export default class RemoveExpiredPunishmentsTask extends BushTask {
const result = await member.unmute({ reason: 'Punishment expired.' });
if (['success', 'failed to dm'].includes(result)) await entry.destroy();
else throw result;
- client.logger.verbose(`removeExpiredPunishments`, `Unmuted ${entry.user}.`);
+ void client.logger.verbose(`removeExpiredPunishments`, `Unmuted ${entry.user}.`);
break;
}
case ActivePunishmentType.ROLE: {
@@ -65,7 +65,7 @@ export default class RemoveExpiredPunishmentsTask extends BushTask {
if (['success', 'failed to dm'].includes(result)) await entry.destroy();
else throw result;
- client.logger.verbose(`removeExpiredPunishments`, `Removed a punishment role from ${entry.user}.`);
+ void client.logger.verbose(`removeExpiredPunishments`, `Removed a punishment role from ${entry.user}.`);
break;
}
}
diff --git a/src/tasks/updateCache.ts b/src/tasks/updateCache.ts
index 721b2db..9ca7926 100644
--- a/src/tasks/updateCache.ts
+++ b/src/tasks/updateCache.ts
@@ -14,7 +14,7 @@ export class UpdateCacheTask extends BushTask {
public async exec(): Promise<void> {
await UpdateCacheTask.updateGlobalCache(client);
await UpdateCacheTask.updateGuildCache(client);
- await client.logger.verbose(`UpdateCache`, `Updated cache.`);
+ void client.logger.verbose(`UpdateCache`, `Updated cache.`);
}
public static async init(client: BushClient): Promise<void> {