aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar scragly <[email protected]>2020-08-07 14:16:06 +1000
committerGravatar GitHub <[email protected]>2020-08-07 14:16:06 +1000
commit518f67fe197251410ee432a9ec18b2a79e1c6b2a (patch)
treefa32840ae8e4bec8a869f2e38b7ef17afd33ab6a
parentMerge pull request #1093 from python-discord/discord.py-1.4 (diff)
parentMerge branch 'master' into bug/help/1074/duplicate-claim (diff)
Merge pull request #1092 from python-discord/bug/help/1074/duplicate-claim
-rw-r--r--bot/cogs/help_channels.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/bot/cogs/help_channels.py b/bot/cogs/help_channels.py
index 1be980472..2400cd544 100644
--- a/bot/cogs/help_channels.py
+++ b/bot/cogs/help_channels.py
@@ -215,9 +215,6 @@ class HelpChannels(commands.Cog):
log.trace("close command invoked; checking if the channel is in-use.")
if ctx.channel.category == self.in_use_category:
if await self.dormant_check(ctx):
-
- # Remove the claimant and the cooldown role
- await self.help_channel_claimants.delete(ctx.channel.id)
await self.remove_cooldown_role(ctx.author)
# Ignore missing task when cooldown has passed but the channel still isn't dormant.
@@ -551,6 +548,7 @@ class HelpChannels(commands.Cog):
A caller argument is provided for metrics.
"""
+ await self.help_channel_claimants.delete(channel.id)
msg_id = await self.question_messages.pop(channel.id)
try: