diff --git a/moderation/moderation.py b/moderation/moderation.py index a85b6bd..75ec8f8 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.microseconds > 2.419e+12: + 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)