1 @bot.command(pass_context=True)
2 @commands.has_role("Admin")
3 async def unmute(ctx, user: discord.Member):
4 role = discord.utils.find(lambda r: r.name == 'Member', ctx.message.server.roles)
5 if role in user.roles:
6 await bot.say("{} is not muted".format(user))
7 else:
8 await bot.add_roles(user, role)
9