fix(moderation): implemented a solution for people editing moderations more than 25 times

This commit is contained in:
Seaswimmer 2023-12-14 19:45:27 -05:00
parent 43528397e8
commit d623622d3b
Signed by untrusted user: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -1131,6 +1131,9 @@ class Moderation(commands.Cog):
raise(LookupError)
changes: list = case['changes']
if len(changes) > 25:
await interaction.response.send_message(content="Due to limitations with Discord's embed system, you cannot edit a case more than 25 times.", ephemeral=True)
return
if not changes:
changes.append(
{