Skip to content

Commit 8aad460

Browse files
committed
Update forward.py
1 parent c393e39 commit 8aad460

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
@@ -276,7 +276,7 @@ async def tblock(self, ctx, user: discord.Member, time: Optional[MuteTime] = Non
276276
async with self.config.blocked() as blocked:
277277
userid = str(user.id)
278278
if userid not in blocked:
279-
duration = time.get("duration") if time else MuteTime().convert("5d").get("duration")
279+
duration = time.get("duration") if time else MuteTime().convert(argument="5d").get("duration")
280280
blocked[userid] = (datetime.now(timezone.utc) + duration).timestamp() # until
281281
await ctx.maybe_send_embed("Blocked <@{id}> from send messages to the bot until {until}.".format(id=userid, until=datetime.fromtimestamp(blocked[userid])))
282282
else:

0 commit comments

Comments
 (0)