Mute 4er essai
This commit is contained in:
parent
1ba79e3172
commit
8252930ee4
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue