diff options
author | 2020-05-20 10:53:58 +0300 | |
---|---|---|
committer | 2020-05-20 10:53:58 +0300 | |
commit | caac9b92d7c3f73ca5428597606105730e56cefc (patch) | |
tree | 977080947cd44819395b3775a709351f0cfe7ee4 | |
parent | Infractions: Remove space from placeholder (diff) |
ModLog: Fix embed description truncation
-rw-r--r-- | bot/cogs/moderation/modlog.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/moderation/modlog.py b/bot/cogs/moderation/modlog.py index c6497b38d..9d28030d9 100644 --- a/bot/cogs/moderation/modlog.py +++ b/bot/cogs/moderation/modlog.py @@ -100,7 +100,7 @@ class ModLog(Cog, name="ModLog"): """Generate log embed and send to logging channel.""" # Truncate string directly here to avoid removing newlines embed = discord.Embed( - description=text[:2046] + "..." if len(text) > 2048 else text + description=text[:2045] + "..." if len(text) > 2048 else text ) if title and icon_url: |