aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2020-04-09 17:48:31 +0200
committerGravatar Numerlor <[email protected]>2020-04-09 20:28:09 +0200
commit65aba04130533154cf9cb3ebb64414f41d987305 (patch)
treec523d4bb9c5f5258a9cf3ba9c66d4e4755545798
parentHelpChannels: check author of dormant message (diff)
Reverse order of moving to dormant and task cancellation.
Reversing the order ensures the task is not cancelled when moving to dormant fails which gives a fallback to move it after the initial period of time.
-rw-r--r--bot/cogs/help_channels.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/help_channels.py b/bot/cogs/help_channels.py
index 5f59a9d60..69812eda0 100644
--- a/bot/cogs/help_channels.py
+++ b/bot/cogs/help_channels.py
@@ -217,8 +217,8 @@ class HelpChannels(Scheduler, commands.Cog):
with suppress(discord.errors.HTTPException, discord.errors.NotFound):
await self.reset_claimant_send_permission(ctx.channel)
- self.cancel_task(ctx.channel.id)
await self.move_to_dormant(ctx.channel)
+ self.cancel_task(ctx.channel.id)
else:
log.debug(f"{ctx.author} invoked command 'dormant' outside an in-use help channel")