Mute 7eme essai

This commit is contained in:
BFlow 2020-04-17 13:58:18 +02:00
parent d6aeafb410
commit c935afd059

View file

@ -216,7 +216,7 @@ 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):
if member.voice.mute:
await ctx.channel.send("Tu ne vas pas m'avoir si facilement")
return
if not member: