diff options
author | 2022-01-27 00:32:59 -0500 | |
---|---|---|
committer | 2022-01-27 08:55:28 -0800 | |
commit | 30fee62d259e71619017420a356ed0f55bf21d2b (patch) | |
tree | cabd59a44fc44e6362d489f13ac99e0edd87c150 | |
parent | Merge pull request #2052 from python-discord/voicemute (diff) |
Add embed message mentioning help channel claimant
Update docstring
-rw-r--r-- | bot/exts/help_channels/_cog.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/bot/exts/help_channels/_cog.py b/bot/exts/help_channels/_cog.py index 60209ba6e..541c791e5 100644 --- a/bot/exts/help_channels/_cog.py +++ b/bot/exts/help_channels/_cog.py @@ -105,10 +105,18 @@ class HelpChannels(commands.Cog): """ Claim the channel in which the question `message` was sent. - Move the channel to the In Use category and pin the `message`. Add a cooldown to the - claimant to prevent them from asking another question. Lastly, make a new channel available. + Send an embed stating the claimant, move the channel to the In Use category, and pin the `message`. + Add a cooldown to the claimant to prevent them from asking another question. + Lastly, make a new channel available. """ log.info(f"Channel #{message.channel} was claimed by `{message.author.id}`.") + + embed = discord.Embed( + description=f"Channel claimed by {message.author.mention}.", + color=constants.Colours.bright_green, + ) + await message.channel.send(embed=embed) + await self.move_to_in_use(message.channel) # Handle odd edge case of `message.author` not being a `discord.Member` (see bot#1839) |