fix(moderation): further refining the 28 day check
All checks were successful
Pylint / Pylint (push) Successful in 1m15s
All checks were successful
Pylint / Pylint (push) Successful in 1m15s
This commit is contained in:
parent
4e31ca651d
commit
5c362f049a
1 changed files with 1 additions and 1 deletions
|
@ -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() / 1000 >= 2419200000:
|
||||
await ctx.send("Please provide a duration that is less than 28 days.")
|
||||
return
|
||||
await target.timeout(parsed_time)
|
||||
|
|
Loading…
Reference in a new issue