title: how do I check if a user has a specific role in discord
body: <p>This should check if the specific person does or doesn't have the mute role </p>
  
  <pre><code>    @bot.command(pass_context=True)
      @commands.has_role("Admin")
      async def unmute(ctx, user: discord.Member):
          role = discord.utils.find(lambda r: r.name == 'Member', 
      ctx.message.server.roles)
          if user.has_role(role):
              await bot.say("{} is not muted".format(user))
          else:
              await bot.add_roles(user, role)
  </code></pre>
  
  <p>This error is thrown</p>
  
  <blockquote>
    <p>Command raised an exception: AttributeError: 'Member' object has no attribute 'has_role'</p>
  </blockquote>
  
  <p>I don't know how to do it so i would really appreciate every help I can get</p>