From d6aeafb410b4936db7bc6e7c29c9e7311a0d7b26 Mon Sep 17 00:00:00 2001 From: BFlow Date: Fri, 17 Apr 2020 13:55:10 +0200 Subject: [PATCH] Mute 6er essai --- kabot/kabot/kabot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 0b095c4..69c51a5 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -216,6 +216,9 @@ class Mybot(commands.Cog): @commands.command(help="Toi tu fermes ta gueule! Tu la fermes définitivement") async def mute(self, ctx, member: discord.Member=None, mute_time = 10): + if member.voice.mute(True): + await ctx.channel.send("Tu ne vas pas m'avoir si facilement") + return if not member: await ctx.channel.send("Qui veux-tu mute?") return