Mute 6er essai
This commit is contained in:
parent
35aaac9baf
commit
d6aeafb410
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue