diff options
| author | 2020-04-08 09:04:15 +0300 | |
|---|---|---|
| committer | 2020-04-08 09:04:15 +0300 | |
| commit | 482c3f4b475cdbe16b377dd5bb85910be0387166 (patch) | |
| tree | fa60e305885a54fba4eed5a36e5db70adb869668 | |
| parent | (Ban and Kick): Added space to `textwrap.shorten` `placeholder`. (diff) | |
(Mod Utils): Added shortening reason on embed creation in `notify_infraction`.
| -rw-r--r-- | bot/cogs/moderation/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/moderation/utils.py b/bot/cogs/moderation/utils.py index 3598f3b1f..9811d059f 100644 --- a/bot/cogs/moderation/utils.py +++ b/bot/cogs/moderation/utils.py @@ -135,7 +135,7 @@ async def notify_infraction( description=textwrap.dedent(f""" **Type:** {infr_type.capitalize()} **Expires:** {expires_at or "N/A"} - **Reason:** {reason or "No reason provided."} + **Reason:** {textwrap.shorten(reason, width=1500, placeholder="...") or "No reason provided."} """), colour=Colours.soft_red ) |