From c07e3cc095c1ca56bf9107271f29a9ed8dcdf854 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 15 Dec 2023 15:47:29 -0500 Subject: [PATCH] feat(moderation): added a changes field to the case embed --- moderation/moderation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/moderation/moderation.py b/moderation/moderation.py index 70febe8..746b2a2 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -468,7 +468,9 @@ class Moderation(commands.Cog): if case_dict['duration'] != 'NULL': td = timedelta(**{unit: int(val) for unit, val in zip(["hours", "minutes", "seconds"], case_dict["duration"].split(":"))}) duration_embed = f"{humanize.precisedelta(td)} | " if bool(case_dict['expired']) is False else str(humanize.precisedelta(td)) - embed.description = embed.description + f"\n**Duration:** {duration_embed}\n**Expired:** {bool(case_dict['expired'])}" + embed.description += f"\n**Duration:** {duration_embed}\n**Expired:** {bool(case_dict['expired'])}" + + embed.description += f"\n**Changes:** {len(case_dict['changes'])}" embed.add_field(name='Reason', value=f"```{case_dict['reason']}```", inline=False)