From f4839d9df73e50651c8d4be56e42144b80fe98d3 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 18 Dec 2023 15:15:24 -0500 Subject: [PATCH] fix(moderation): do not count the original moderation as a change when checking a case --- moderation/embed_factory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moderation/embed_factory.py b/moderation/embed_factory.py index b8866a7..9ed7e90 100644 --- a/moderation/embed_factory.py +++ b/moderation/embed_factory.py @@ -75,7 +75,7 @@ async def embed_factory(embed_type: str, color: Color, /, interaction: Interact duration_embed = f"{humanize.precisedelta(td)} | " if bool(case_dict['expired']) is False else str(humanize.precisedelta(td)) embed.description += f"\n**Duration:** {duration_embed}\n**Expired:** {bool(case_dict['expired'])}" - embed.description += f"\n**Changes:** {len(case_dict['changes'])}" + embed.description += f"\n**Changes:** {len(case_dict['changes']) - 1}" if case_dict['changes'] else "\n**Changes:** 0" if case_dict['metadata']: if case_dict['metadata']['imported_from']: