From 4e31ca651da449289fa4d81684a840626bca3a1f Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Wed, 4 Oct 2023 21:46:00 -0400 Subject: [PATCH] fix(moderation): allow mutes that are exactly 28 days --- moderation/moderation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moderation/moderation.py b/moderation/moderation.py index 75ec8f8..4dc3888 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -202,7 +202,7 @@ class Moderation(commands.Cog): except ValueError: await ctx.send(f"Please provide a valid duration!\nSee `{ctx.prefix}tdc`") return - if parsed_time.total_seconds() > 2.419e+6: + if parsed_time.total_seconds() >= 2.419e+6: await ctx.send("Please provide a duration that is less than 28 days.") return await target.timeout(parsed_time)