diff options
| author | 2021-03-18 20:12:25 +0000 | |
|---|---|---|
| committer | 2021-03-18 20:12:25 +0000 | |
| commit | 50030597819e1be2787ecc52db3d41c8155ede40 (patch) | |
| tree | 7be9ab227e0e0671818e12775c3a83ef2a1ab927 | |
| parent | Repurpose unanswered cache for storing non-claimant last message times (diff) | |
Update function name to describe new behaviour.
Also updates the doc string to reflect this new behaviour.
| -rw-r--r-- | bot/exts/help_channels/_cog.py | 2 | ||||
| -rw-r--r-- | bot/exts/help_channels/_message.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/help_channels/_cog.py b/bot/exts/help_channels/_cog.py index 8c97ef2d0..3f453edd3 100644 --- a/bot/exts/help_channels/_cog.py +++ b/bot/exts/help_channels/_cog.py @@ -431,7 +431,7 @@ class HelpChannels(commands.Cog): if not _channel.is_excluded_channel(message.channel): await self.claim_channel(message) else: - await _message.check_for_answer(message) + await _message.update_message_caches(message) @commands.Cog.listener() async def on_message_delete(self, msg: discord.Message) -> None: diff --git a/bot/exts/help_channels/_message.py b/bot/exts/help_channels/_message.py index 9ba019550..c20af2946 100644 --- a/bot/exts/help_channels/_message.py +++ b/bot/exts/help_channels/_message.py @@ -42,8 +42,8 @@ through our guide for **[asking a good question]({ASKING_GUIDE_URL})**. """ -async def check_for_answer(message: discord.Message) -> None: - """Checks for whether new content in a help channel comes from non-claimants.""" +async def update_message_caches(message: discord.Message) -> None: + """Checks the source of new content in a help channel and updates the appropriate cache.""" channel = message.channel # Confirm the channel is an in use help channel |