From b1b105ad71ad53c94a1610e4e076bd0c0a4e466d Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 25 Mar 2021 20:28:29 +0000 Subject: Check for close on command explictly. --- bot/exts/help_channels/_cog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/exts/help_channels/_cog.py b/bot/exts/help_channels/_cog.py index 4031cf3c1..7dde204d0 100644 --- a/bot/exts/help_channels/_cog.py +++ b/bot/exts/help_channels/_cog.py @@ -396,7 +396,7 @@ class HelpChannels(commands.Cog): # Cancel the task that makes the channel dormant only if called by the close command. # In other cases, the task is either already done or not-existent. - if not closed_on: + if closed_on == "command": self.scheduler.cancel(channel.id) async def move_to_in_use(self, channel: discord.TextChannel) -> None: -- cgit v1.2.3