diff options
author | 2022-02-05 17:11:10 +0100 | |
---|---|---|
committer | 2022-02-05 17:11:10 +0100 | |
commit | ee5a2166e08805a31dd6141db663ccacfde0b551 (patch) | |
tree | 7e99afe9b9778d00550a3219f1bd6499c1899d1e | |
parent | Merge pull request #2064 from python-discord/fix-voice-gate (diff) | |
parent | Add reported message author's username and profile picture in embed (diff) |
Merge pull request #2073 from minalike/incident-unfurl-embed-pfp
Add reported message author's profile picture to unfurl embed
-rw-r--r-- | bot/exts/moderation/incidents.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/exts/moderation/incidents.py b/bot/exts/moderation/incidents.py index 77dfad255..b579416a6 100644 --- a/bot/exts/moderation/incidents.py +++ b/bot/exts/moderation/incidents.py @@ -229,6 +229,7 @@ async def make_message_link_embed(ctx: Context, message_link: str) -> Optional[d ), timestamp=message.created_at ) + embed.set_author(name=message.author, icon_url=message.author.display_avatar.url) embed.add_field( name="Content", value=shorten_text(message.content) if message.content else "[No Message Content]" |