diff options
| author | 2020-09-20 21:47:50 +0300 | |
|---|---|---|
| committer | 2020-09-20 21:47:50 +0300 | |
| commit | ecb132f9044b90f880d1d66ea19c99eb338b338e (patch) | |
| tree | c9366ce51d47f1b150efbc703ea714784858f415 | |
| parent | Shorten infraction text when any other field than reason is too long (diff) | |
Remove special shortening from reason
| -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 4a3c14391..4dba8e812 100644 --- a/bot/cogs/moderation/utils.py +++ b/bot/cogs/moderation/utils.py @@ -157,7 +157,7 @@ async def notify_infraction( text = INFRACTION_DESCRIPTION_TEMPLATE.format( type=infr_type.capitalize(), expires=expires_at or "N/A", - reason=textwrap.shorten(reason, 1000, placeholder="...") if reason else "No reason provided." + reason=reason or "No reason provided." ) # For case when other fields than reason is too long and this reach limit, then force-shorten string |