aboutsummaryrefslogtreecommitdiffstats
path: root/bot/cogs/reminders.py
diff options
context:
space:
mode:
authorGravatar Dennis Pham <[email protected]>2020-08-09 13:48:46 -0400
committerGravatar GitHub <[email protected]>2020-08-09 13:48:46 -0400
commita59cdea6e2610abc2752fd253897ae01285d61b8 (patch)
tree44a9787f8d6b834095568035617a664fa49b167d /bot/cogs/reminders.py
parentUtils: show error message for long poll titles (diff)
parentRemove unnecessary edits during pagination (diff)
Merge branch 'master' into bug/util/1079/long-poll-titles
Diffstat (limited to '')
-rw-r--r--bot/cogs/reminders.py4
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()