fix(moderation): reduced maximum reason size in history embeds from 150 to 125
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 48s

This commit is contained in:
Seaswimmer 2023-12-15 22:24:29 -05:00
parent d67f73ab91
commit f12f4b5406
Signed by: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -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'])}`"