From e22910b27b5c2487de5f9aeec1a1bd9fc0cf2d07 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 5 Oct 2023 13:11:04 -0400 Subject: [PATCH] fix(moderation): resolved moderations will be set as expired now --- moderation/moderation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moderation/moderation.py b/moderation/moderation.py index 1bed1df..de6370e 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -387,7 +387,7 @@ class Moderation(commands.Cog): embed = discord.Embed(title=f"📕 Case #{case['moderation_id']}", color=await self.bot.get_embed_color(None)) embed.description = f"**Type:** {str.title(case['moderation_type'])}\n**Target:** {target_name} ({target.id})\n**Moderator:** {moderator_name} ({moderator.id})\n**Resolved:** {bool(case['resolved'])}\n**Timestamp:** | " if case['duration'] != 'NULL': - expired = True if case["end_timestamp"] <= time.time() else False + expired = True if case["end_timestamp"] <= time.time() or case['resolved'] == 1 else False embed.description = embed.description + f"\n**Duration:** {humanize.precisedelta(case['duration'])}\n**Expired:** {expired}" embed.add_field(name='Reason', value=f"```{case['reason']}```") if case['resolved'] == 1: