diff options
| author | 2021-04-26 08:17:39 +0530 | |
|---|---|---|
| committer | 2021-10-11 12:05:38 +0530 | |
| commit | b0c4cdbd3328e46f5a1d6dd6be3600e20e7f19aa (patch) | |
| tree | 744e5e8b4c110f35de4dc606b1cd0c14f928732c | |
| parent | Rename 'send_webhooks' to 'send_message_link_embed' (diff) | |
Remove leading whitespace from msg link embed content
| -rw-r--r-- | bot/exts/moderation/incidents.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/moderation/incidents.py b/bot/exts/moderation/incidents.py index da349f654..9d3b0fe6f 100644 --- a/bot/exts/moderation/incidents.py +++ b/bot/exts/moderation/incidents.py @@ -164,7 +164,7 @@ async def make_message_link_embed(ctx: Context, message_link: str) -> t.Optional description=( f"**Author:** {format_user(message.author)}\n" f"**Channel:** {channel.mention} ({channel.category}/#{channel.name})\n" - f"**Content:** {textwrap.shorten(text, 300, placeholder='...')}\n" + f"**Content:** {textwrap.shorten(text.lstrip(), 300, placeholder='...')}\n" ) ) embed.set_footer(text=f"Message ID: {message.id}") |