diff options
Diffstat (limited to 'src/tasks/handleReminders.ts')
-rw-r--r-- | src/tasks/handleReminders.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tasks/handleReminders.ts b/src/tasks/handleReminders.ts index 79693f5..7863c9a 100644 --- a/src/tasks/handleReminders.ts +++ b/src/tasks/handleReminders.ts @@ -19,11 +19,14 @@ export default class HandlerRemindersTask extends BushTask { } }); - void client.logger.verbose(`handlerReminders`, `Queried reminders, found <<${expiredEntries.length}>> expired reminders.`); + void this.client.logger.verbose( + `handlerReminders`, + `Queried reminders, found <<${expiredEntries.length}>> expired reminders.` + ); for (const entry of expiredEntries) { setTimeout(() => { - void client.users + void this.client.users .send( entry.user, `The reminder you set ${dateDelta(entry.created)} ago has expired: ${format.bold(entry.content)}\n${entry.messageUrl}` |