aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris <[email protected]>2021-03-25 20:28:29 +0000
committerGravatar Chris <[email protected]>2021-03-25 20:28:29 +0000
commitb1b105ad71ad53c94a1610e4e076bd0c0a4e466d (patch)
treec4d58389a9be738dde6b7400039a9d9ba5bd9dce
parentRemove unneeded cache clearing (diff)
Check for close on command explictly.
-rw-r--r--bot/exts/help_channels/_cog.py2
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: