title: Check if user has permission in discord.py
body: <p>I am making a kick command for my discord.py bot. Here is some code that the kick command might be:</p>
  
  <pre><code>    async kick_command(self, ctx, userName: discord.User):
        prefix_used = ctx.prefix
        alias_used = ctx.invoked_with
        text = msg[len(prefix_used) + len(alias_used):]
        if discord.User permissions = "admin":
          try:
            kick(User)
          except Exception as e:
            ee = "Error: " + e
            await ctx.send_message(content=ee)
  </code></pre>
  
  <p>I am pretty sure the if statement and <code>kick(User)</code> are invalid syntax. Can you help me?</p>
  
  <p>My code:
  <a href="https://repl.it/@CodingAndMemes/Moderator-Bot/" rel="nofollow noreferrer">click here</a></p>