diff options
| author | 2021-03-25 20:28:29 +0000 | |
|---|---|---|
| committer | 2021-03-25 20:28:29 +0000 | |
| commit | b1b105ad71ad53c94a1610e4e076bd0c0a4e466d (patch) | |
| tree | c4d58389a9be738dde6b7400039a9d9ba5bd9dce | |
| parent | Remove unneeded cache clearing (diff) | |
Check for close on command explictly.
| -rw-r--r-- | bot/exts/help_channels/_cog.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |