From d623622d3b52d461b271aab62768635e8a353215 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 14 Dec 2023 19:45:27 -0500 Subject: [PATCH] fix(moderation): implemented a solution for people editing moderations more than 25 times --- moderation/moderation.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/moderation/moderation.py b/moderation/moderation.py index b07c070..e120856 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -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( {