From f12f4b54060c0b9c61b302a811d4d0279c7314b8 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 15 Dec 2023 22:24:29 -0500 Subject: [PATCH] fix(moderation): reduced maximum reason size in history embeds from 150 to 125 --- moderation/moderation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moderation/moderation.py b/moderation/moderation.py index a0574a8..7b57825 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -1029,8 +1029,8 @@ class Moderation(commands.Cog): field_name = f"Case #{case['moderation_id']} ({str.title(case['moderation_type'])})" field_value = f"**Target:** `{target_name}` ({target_user['id']})\n**Moderator:** `{moderator_name}` ({moderator_user['id']})" - if len(case['reason']) > 150: - field_value += f"\n**Reason:** `{str(case['reason'])[:150]}...`" + if len(case['reason']) > 125: + field_value += f"\n**Reason:** `{str(case['reason'])[:125]}...`" else: field_value += f"\n**Reason:** `{str(case['reason'])}`"