fix(moderation): allow mutes that are exactly 28 days
All checks were successful
Pylint / Pylint (push) Successful in 1m13s

This commit is contained in:
SeaswimmerTheFsh 2023-10-04 21:46:00 -04:00
parent ce18cf1348
commit 4e31ca651d
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 5019678FD9CF50D8

View file

@ -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)