aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Shivansh-007 <[email protected]>2021-06-13 13:21:38 +0530
committerGravatar Shivansh-007 <[email protected]>2021-06-13 13:21:38 +0530
commitb47228ee03b1f39b91209ed04d39e66c1bee9b54 (patch)
tree39e2e47119b7a826f0f7d4f06fc434efde663167
parent(modpings): Add a day to datetime if already passed (diff)
(modpings): Make flake8 happy!
-rw-r--r--bot/exts/moderation/modpings.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/exts/moderation/modpings.py b/bot/exts/moderation/modpings.py
index 207480a68..cf45a2182 100644
--- a/bot/exts/moderation/modpings.py
+++ b/bot/exts/moderation/modpings.py
@@ -228,13 +228,12 @@ class ModPings(Cog):
)
@schedule_modpings.command(name='delete', aliases=('del', 'd'))
- async def modpings_schedule_delete(self, ctx: Context):
+ async def modpings_schedule_delete(self, ctx: Context) -> None:
"""Delete your modpings schedule."""
self._modpings_scheduler.cancel(ctx.author.id)
await self.modpings_schedule.delete(ctx.author.id)
await ctx.send(f"{Emojis.ok_hand} {ctx.author.mention} Deleted your modpings schedule!")
-
def cog_unload(self) -> None:
"""Cancel role tasks when the cog unloads."""
log.trace("Cog unload: canceling role tasks.")