Increase lock limits to 7 days from 12 hours
This commit is contained in:
parent
008da0df03
commit
5df60aea3d
2 changed files with 4 additions and 4 deletions
|
@ -57,8 +57,8 @@ class LockCog(Extension):
|
|||
await ctx.send("Duration must be > 0", ephemeral=True)
|
||||
return
|
||||
|
||||
elif duration > 60 * 12:
|
||||
await ctx.send("Duration must be <= 12 hours", ephemeral=True)
|
||||
elif duration > 60 * 24 * 7:
|
||||
await ctx.send("Duration must be <= 7 days", ephemeral=True)
|
||||
return
|
||||
|
||||
if len(reason) > 100:
|
||||
|
|
|
@ -130,8 +130,8 @@ class LockdownCog(Extension):
|
|||
if duration <= 0:
|
||||
await ctx.send("Duration must be > 0", ephemeral=True)
|
||||
return
|
||||
elif duration >= 300:
|
||||
await ctx.send("Duration must be < 5 hours", ephemeral=True)
|
||||
elif duration > 60 * 24 * 7:
|
||||
await ctx.send("Duration must be <= 7 days", ephemeral=True)
|
||||
return
|
||||
|
||||
exists = await Lockdown.find_one(q(guild=ctx.guild.id, active=True))
|
||||
|
|
Loading…
Add table
Reference in a new issue