aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris <[email protected]>2021-03-18 20:13:59 +0000
committerGravatar Chris <[email protected]>2021-03-18 20:13:59 +0000
commit9a3c946d5fd390c422cc83b57fdf29afb0e635b7 (patch)
treeff04b52e69401fc811afc0dfd0fe0a4bae738dcd
parentUpdate function name to describe new behaviour. (diff)
Delete cached claimant message time.
-rw-r--r--bot/exts/help_channels/_cog.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/exts/help_channels/_cog.py b/bot/exts/help_channels/_cog.py
index 3f453edd3..a372fa868 100644
--- a/bot/exts/help_channels/_cog.py
+++ b/bot/exts/help_channels/_cog.py
@@ -377,6 +377,7 @@ class HelpChannels(commands.Cog):
async def _unclaim_channel(self, channel: discord.TextChannel, claimant_id: int, is_auto: bool) -> None:
"""Actual implementation of `unclaim_channel`. See that for full documentation."""
await _caches.claimants.delete(channel.id)
+ await _caches.claimant_last_message_times.delete(channel.id)
await _caches.non_claimant_last_message_times.delete(channel.id)
# Ignore missing tasks because a channel may still be dormant after the cooldown expires.