aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-04-08 15:18:38 +0300
committerGravatar ks129 <[email protected]>2020-04-08 15:18:38 +0300
commit03028eab84a09c047c0ef879fc06fccacbe30420 (patch)
treec95cd0657e5eb143e7daebdcbb85427eb934a09b
parent(Scheduler): Removed reason truncation from `apply_infraction`, changed order... (diff)
(Mod Utils): Removed truncation of reason itself and added truncation to whole embed in `notify_infraction`.
-rw-r--r--bot/cogs/moderation/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/cogs/moderation/utils.py b/bot/cogs/moderation/utils.py
index 9811d059f..0423e5373 100644
--- a/bot/cogs/moderation/utils.py
+++ b/bot/cogs/moderation/utils.py
@@ -132,11 +132,11 @@ async def notify_infraction(
log.trace(f"Sending {user} a DM about their {infr_type} infraction.")
embed = discord.Embed(
- description=textwrap.dedent(f"""
+ description=textwrap.shorten(textwrap.dedent(f"""
**Type:** {infr_type.capitalize()}
**Expires:** {expires_at or "N/A"}
- **Reason:** {textwrap.shorten(reason, width=1500, placeholder="...") or "No reason provided."}
- """),
+ **Reason:** {reason or "No reason provided."}
+ """), width=2048, placeholder="..."),
colour=Colours.soft_red
)