diff options
author | 2021-11-07 01:43:11 +0530 | |
---|---|---|
committer | 2021-11-07 01:43:11 +0530 | |
commit | a3ee621fb53da75ba357a90c5b2d17529aef5c99 (patch) | |
tree | f4f1a47b9d381a6bfe7b8b0948225742b894d56f | |
parent | Attach attachments if present in linked message (diff) |
SHow thread parent name if linked message in thread
-rw-r--r-- | bot/exts/moderation/incidents.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/exts/moderation/incidents.py b/bot/exts/moderation/incidents.py index e7c9d0399..18102587a 100644 --- a/bot/exts/moderation/incidents.py +++ b/bot/exts/moderation/incidents.py @@ -220,7 +220,9 @@ async def make_message_link_embed(ctx: Context, message_link: str) -> Optional[d colour=discord.Colour.gold(), description=( f"**Author:** {format_user(message.author)}\n" - f"**Channel:** {channel.mention} ({channel.category}/#{channel.name})\n" + f"**Channel:** {channel.mention} ({channel.category}" + f"{f'/#{channel.parent.name} - ' if isinstance(channel, discord.Thread) else '/#'}" + f"{channel.name})\n" ), timestamp=message.created_at ) |