Skip to content

Commit fbc6c01

Browse files
authored
Merge pull request #4 from LorenzoModmailDev/development
Update snooze arg
2 parents cd7b4cc + 7953813 commit fbc6c01

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cogs/modmail.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2261,10 +2261,10 @@ async def isenable(self, ctx):
22612261

22622262
return await ctx.send(embed=embed)
22632263

2264-
@commands.command(usage="[after]")
2264+
@commands.command(usage="[duration]")
22652265
@checks.has_permissions(PermissionLevel.SUPPORTER)
22662266
@checks.thread_only()
2267-
async def snooze(self, ctx, *, after: UserFriendlyTime = None):
2267+
async def snooze(self, ctx, *, duration: UserFriendlyTime = None):
22682268
"""
22692269
Snooze this thread: deletes the channel, keeps the ticket open in DM, and restores it when the user replies or a moderator unsnoozes it.
22702270
Optionally specify a duration, e.g. 'snooze 2d' for 2 days.
@@ -2279,8 +2279,8 @@ async def snooze(self, ctx, *, after: UserFriendlyTime = None):
22792279
if max_snooze is None:
22802280
max_snooze = 604800
22812281
max_snooze = int(max_snooze)
2282-
if after:
2283-
snooze_for = int((after.dt - after.now).total_seconds())
2282+
if duration:
2283+
snooze_for = int((duration.dt - duration.now).total_seconds())
22842284
if snooze_for > max_snooze:
22852285
snooze_for = max_snooze
22862286
else:

0 commit comments

Comments
 (0)