fix(moderation): implemented a solution for people editing moderations more than 25 times
This commit is contained in:
parent
43528397e8
commit
d623622d3b
1 changed files with 3 additions and 0 deletions
|
@ -1131,6 +1131,9 @@ class Moderation(commands.Cog):
|
||||||
raise(LookupError)
|
raise(LookupError)
|
||||||
|
|
||||||
changes: list = case['changes']
|
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:
|
if not changes:
|
||||||
changes.append(
|
changes.append(
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue