diff options
| author | 2020-08-09 13:48:46 -0400 | |
|---|---|---|
| committer | 2020-08-09 13:48:46 -0400 | |
| commit | a59cdea6e2610abc2752fd253897ae01285d61b8 (patch) | |
| tree | 44a9787f8d6b834095568035617a664fa49b167d /bot/cogs/reminders.py | |
| parent | Utils: show error message for long poll titles (diff) | |
| parent | Remove unnecessary edits during pagination (diff) | |
Merge branch 'master' into bug/util/1079/long-poll-titles
Diffstat (limited to '')
| -rw-r--r-- | bot/cogs/reminders.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bot/cogs/reminders.py b/bot/cogs/reminders.py index b5998cc0e..670493bcf 100644 --- a/bot/cogs/reminders.py +++ b/bot/cogs/reminders.py @@ -37,6 +37,10 @@ class Reminders(Cog): self.bot.loop.create_task(self.reschedule_reminders()) + def cog_unload(self) -> None: + """Cancel scheduled tasks.""" + self.scheduler.cancel_all() + async def reschedule_reminders(self) -> None: """Get all current reminders from the API and reschedule them.""" await self.bot.wait_until_guild_available() |