diff options
author | 2023-01-23 11:47:44 +0000 | |
---|---|---|
committer | 2023-01-23 12:28:17 +0000 | |
commit | eb45d03422c9a6537c1647772d0592965720e667 (patch) | |
tree | c12691108a69dc98aec2b9bdee25e91fb02ce554 | |
parent | Add icons to help channel bot embeds (diff) |
Add action text to help channel embeds
-rw-r--r-- | bot/exts/help_channels/_channel.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/exts/help_channels/_channel.py b/bot/exts/help_channels/_channel.py index 695c71b95..2504aedab 100644 --- a/bot/exts/help_channels/_channel.py +++ b/bot/exts/help_channels/_channel.py @@ -48,7 +48,8 @@ def is_help_forum_post(channel: discord.abc.GuildChannel) -> bool: async def _close_help_post(closed_post: discord.Thread, closing_reason: _stats.ClosingReason) -> None: """Close the help post and record stats.""" embed = discord.Embed(description=DORMANT_MSG) - embed.set_author(name=POST_TITLE, icon_url=CLOSED_POST_ICON_URL) + embed.set_author(name=f"{POST_TITLE} closed", icon_url=CLOSED_POST_ICON_URL) + await closed_post.send(embed=embed) await closed_post.edit(archived=True, locked=True, reason="Locked a dormant help post") @@ -75,7 +76,7 @@ async def send_opened_post_message(post: discord.Thread) -> None: color=constants.Colours.bright_green, description=NEW_POST_MSG, ) - embed.set_author(name=POST_TITLE, icon_url=NEW_POST_ICON_URL) + embed.set_author(name=f"{POST_TITLE} opened", icon_url=NEW_POST_ICON_URL) embed.set_footer(text=NEW_POST_FOOTER) await post.send(embed=embed) |