diff options
author | 2023-01-23 11:47:04 +0000 | |
---|---|---|
committer | 2023-01-23 12:34:01 +0000 | |
commit | ebed3329ab0c22d41110e1551a6acbd03a11cc6f (patch) | |
tree | 3eb682a32291cdd6bc9989b3b3c71eaab97902c9 | |
parent | Add action text to help channel embeds (diff) |
Update closed help post embed text
-rw-r--r-- | bot/exts/help_channels/_channel.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/bot/exts/help_channels/_channel.py b/bot/exts/help_channels/_channel.py index 2504aedab..c87468bbf 100644 --- a/bot/exts/help_channels/_channel.py +++ b/bot/exts/help_channels/_channel.py @@ -28,13 +28,10 @@ For more tips, check out our guide on [asking good questions]({ASKING_GUIDE_URL} NEW_POST_FOOTER = f"Closes after a period of inactivity, or when you send {constants.Bot.prefix}close." NEW_POST_ICON_URL = f"{BRANDING_REPO_RAW_URL}/main/icons/checkmark/green-checkmark-dist.png" -DORMANT_MSG = f""" -This help channel has been marked as **dormant** and locked. \ -It is no longer possible to send messages in this channel. - -If your question wasn't answered yet, you can create a new post in <#{constants.Channels.help_system_forum}>. \ -Consider rephrasing the question to maximize your chance of getting a good answer. \ -If you're not sure how, have a look through our guide for **[asking a good question]({ASKING_GUIDE_URL})**. +CLOSED_POST_MSG = f""" +This help channel has been closed and it's no longer possible to send messages here. \ +If your question wasn't answered, feel free to create a new post in <#{constants.Channels.help_system_forum}>. \ +To maximize your chances of getting a response, check out this guide on [asking good questions]({ASKING_GUIDE_URL}). """ CLOSED_POST_ICON_URL = f"{BRANDING_REPO_RAW_URL}/main/icons/zzz/zzz-dist.png" @@ -47,11 +44,11 @@ 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 = discord.Embed(description=CLOSED_POST_MSG) 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") + await closed_post.edit(archived=True, locked=True, reason="Locked a closed help post") _stats.report_post_count() await _stats.report_complete_session(closed_post, closing_reason) |