From df49498da701f7064aef4d51671a3981ca84cfec Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 5 Oct 2023 13:07:51 -0400 Subject: [PATCH] fix(moderation): naturaldelta --> precisedelta --- moderation/moderation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moderation/moderation.py b/moderation/moderation.py index 2ba9384..1bed1df 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -388,7 +388,7 @@ class Moderation(commands.Cog): 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 - embed.description = embed.description + f"\n**Duration:** {humanize.naturaldelta(case['duration'])}\n**Expired:** {expired}" + 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: embed.add_field(name='Resolve Reason', value=f"```{case['resolve_reason']}```")