Mute 4er essai

This commit is contained in:
BFlow 2020-04-17 12:46:45 +02:00
parent 1ba79e3172
commit 8252930ee4

View file

@ -222,6 +222,7 @@ class Mybot(commands.Cog):
if mute_time > 60: if mute_time > 60:
await ctx.channel.send("Doucement sur le temps!") await ctx.channel.send("Doucement sur le temps!")
return return
member = ctx.message.mentions[0]
role = discord.utils.get(ctx.guild.roles, name="muted") role = discord.utils.get(ctx.guild.roles, name="muted")
await member.add_roles(role) await member.add_roles(role)
await ctx.send("Tu sors %s!" % member.mention) await ctx.send("Tu sors %s!" % member.mention)