diff --git a/src/cmds/core/mute.py b/src/cmds/core/mute.py index 8cc36b5..cb1087c 100644 --- a/src/cmds/core/mute.py +++ b/src/cmds/core/mute.py @@ -56,8 +56,9 @@ async def mute( if isinstance(member, Member): role = ctx.guild.get_role(settings.roles.MUTED) await member.add_roles(role) - self.bot.loop.create_task(schedule(unmute_member(ctx.guild, member), run_at=datetime.fromtimestamp(dur))) - + timestamp=datetime.fromtimestamp(dur) + self.bot.loop.create_task(schedule(unmute_member(ctx.guild, member), run_at=timestamp)) + await member.timeout(timestamp, reason=reason if reason else "Time to shush, innit?") try: await member.send(f"You have been muted for {duration}. Reason:\n>>> {reason}") except Forbidden: