title: discord.py check if a user has a particular role
body: <p>I'm trying to get this to check if the user has the role that's tagged or not.</p>
  
  <p>discord.utils.get(ctx.guild.roles, name=rolename)
  and 
  discord.utils.get(user.roles, name=rolename)</p>
  
  <pre><code>@bot.command()
  @commands.has_permissions(manage_roles=True)
  async def giverole(ctx, user: discord.Member, rolename: discord.Role):
      role = discord.utils.get(ctx.guild.roles, name=rolename)
      if(not role in user.roles):
          await user.add_roles(rolename)
          embed=discord.Embed(title=f"{user.name} Has been added to a role called: {rolename.name}", color=discord.Color.dark_purple())
          await ctx.send(embed=embed)
      else:
          await ctx.send(f"Hey {ctx.author.name}, {user.name} already has the role called: {rolename.name}")
  </code></pre>
  
  <p>No errors just keeps giving the role instead of checking if the user has the role or not.</p>