aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/cogs/help_channels.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bot/cogs/help_channels.py b/bot/cogs/help_channels.py
index d6031d7ff..6725efb72 100644
--- a/bot/cogs/help_channels.py
+++ b/bot/cogs/help_channels.py
@@ -556,6 +556,10 @@ class HelpChannels(Scheduler, commands.Cog):
await self.available_category.set_permissions(member, send_messages=False)
+ # Cancel the existing task, if any.
+ # Would mean the user somehow bypassed the lack of permissions (e.g. user is guild owner).
+ self.cancel_task(member.id, ignore_missing=True)
+
timeout = constants.HelpChannels.claim_minutes * 60
callback = self.available_category.set_permissions(member, send_messages=None)