From 8252930ee4c4ded53c5b8b9a4aa7bb35cbe49346 Mon Sep 17 00:00:00 2001 From: BFlow Date: Fri, 17 Apr 2020 12:46:45 +0200 Subject: [PATCH] Mute 4er essai --- kabot/kabot/kabot.py | 1 + 1 file changed, 1 insertion(+) 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)