aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Shivansh-007 <[email protected]>2021-10-19 05:03:12 +0530
committerGravatar Shivansh-007 <[email protected]>2021-10-19 05:03:21 +0530
commit792e05cf87cf52dde38031ca24de511623736c75 (patch)
tree35ba338ac4f109c3340f37e6c00f5a29728db9e2
parentMake docstring clear about max length (diff)
Add message creation timestamp to message link embed
-rw-r--r--bot/exts/moderation/incidents.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/exts/moderation/incidents.py b/bot/exts/moderation/incidents.py
index 9a526fa9f..0b6b7ad9a 100644
--- a/bot/exts/moderation/incidents.py
+++ b/bot/exts/moderation/incidents.py
@@ -222,7 +222,8 @@ async def make_message_link_embed(ctx: Context, message_link: str) -> Optional[d
description=(
f"**Author:** {format_user(message.author)}\n"
f"**Channel:** {channel.mention} ({channel.category}/#{channel.name})\n"
- )
+ ),
+ timestamp=message.created_at
)
embed.add_field(
name="Content",