Skip to content

Commit ae606ed

Browse files
committed
Fix default duration value
1 parent 1124126 commit ae606ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

forward/forward.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ async def tblock(self, ctx, user: discord.Member, time: Optional[MuteTime] = Non
250250
async with self.config.blocked() as blocked:
251251
userid = str(user.id)
252252
if userid not in blocked:
253-
duration = time.get("duration") if time else MuteTime("5d").get("duration")
253+
duration = time.get("duration") if time else MuteTime().convert("5d").get("duration")
254254
blocked[userid] = (datetime.now(timezone.utc) + duration).timestamp() # until
255255
await ctx.maybe_send_embed("Blocked <@{id}> from send messages to the bot until {until}.".format(id=userid, until=datetime.fromtimestamp(blocked[userid])))
256256
else:

0 commit comments

Comments
 (0)