aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-05-20 10:53:58 +0300
committerGravatar GitHub <[email protected]>2020-05-20 10:53:58 +0300
commitcaac9b92d7c3f73ca5428597606105730e56cefc (patch)
tree977080947cd44819395b3775a709351f0cfe7ee4
parentInfractions: Remove space from placeholder (diff)
ModLog: Fix embed description truncation
-rw-r--r--bot/cogs/moderation/modlog.py2
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: