aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar minalike <[email protected]>2022-02-05 11:06:01 -0500
committerGravatar minalike <[email protected]>2022-02-05 11:06:01 -0500
commit9f2d0839e4fb9d31d500db2c5bc5e22d59ed2cbb (patch)
tree7e99afe9b9778d00550a3219f1bd6499c1899d1e
parentMerge pull request #2064 from python-discord/fix-voice-gate (diff)
Add reported message author's username and profile picture in embed
-rw-r--r--bot/exts/moderation/incidents.py1
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]"