aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar TizzySaurus <[email protected]>2021-08-11 09:10:37 +0100
committerGravatar GitHub <[email protected]>2021-08-11 09:10:37 +0100
commitae0d725be15c06ba66a6b3b557d6a09e454056ca (patch)
treef3a76f16621fe6ef71eaf775200b2fe18367726d
parentUpdate DORMANT_MSG to allow kwargs in str.format() (diff)
Update embed sent when channel moves to dormant category
-rw-r--r--bot/exts/help_channels/_cog.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/bot/exts/help_channels/_cog.py b/bot/exts/help_channels/_cog.py
index 35658d117..6f8472069 100644
--- a/bot/exts/help_channels/_cog.py
+++ b/bot/exts/help_channels/_cog.py
@@ -387,7 +387,14 @@ class HelpChannels(commands.Cog):
)
log.trace(f"Sending dormant message for #{channel} ({channel.id}).")
- embed = discord.Embed(description=_message.DORMANT_MSG)
+ available_category = self.bot.get_channel(constants.Categories.help_available)
+ embed = discord.Embed(
+ description=_message.DORMANT_MSG.format(
+ dormant=channel.category.name,
+ available=available_category.name,
+ asking_guide=_message.ASKING_GUIDE_URL
+ )
+ )
await channel.send(embed=embed)
log.trace(f"Pushing #{channel} ({channel.id}) into the channel queue.")