diff options
| author | 2020-02-29 09:44:22 -0800 | |
|---|---|---|
| committer | 2020-03-22 15:54:42 -0700 | |
| commit | 0a5e6662fc65f1c097d5daca48d4856fa4839a58 (patch) | |
| tree | 1dd0c450c00c07e499333355c6dafc3251dd973b | |
| parent | HelpChannels: fix candidate channel not being returned after waiting (diff) | |
HelpChannels: cancel existing task in the dormant command
| -rw-r--r-- | bot/cogs/help_channels.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/cogs/help_channels.py b/bot/cogs/help_channels.py index 8da07e9f7..dfc9e0119 100644 --- a/bot/cogs/help_channels.py +++ b/bot/cogs/help_channels.py @@ -178,6 +178,7 @@ class HelpChannels(Scheduler, commands.Cog): in_use = self.get_category_channels(self.in_use_category) if ctx.channel in in_use: + self.cancel_task(ctx.channel.id) await self.move_to_dormant(ctx.channel) else: log.debug(f"{ctx.author} invoked command 'dormant' outside an in-use help channel") |