diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 88d9a7a..6f10f97 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -222,6 +222,7 @@ class Mybot(commands.Cog): if mute_time > 60: await ctx.channel.send("Doucement sur le temps!") return + member = ctx.message.mentions[0] role = discord.utils.get(ctx.guild.roles, name="muted") await member.add_roles(role) await ctx.send("Tu sors %s!" % member.mention)