title: Permission Check Discord.py Bot
body: <p>I am working on a discord bot for basic moderation which does <code>kick</code>, <code>ban</code> and <code>mute</code> for now at least. But the problem is other members can use it too. I want only a few specified role who can use it.</p>
  
  <p>Don't want to work on it depending on the <code>@role</code> either because the name of the roles across different servers aren't the same. Also wanting to keep the bot as simple as possible. </p>
  
  <p>Now, I started out as this:</p>
  
  <pre><code>@client.command(name='ban')
  async def mod_ban(member: discord.User):
      try:
          await client.ban(member, delete_message_days=0)
          await client.say('**{0}** has been banned.'.format(str(member)))
      except Exception as error:
          await client.say(error)
  </code></pre>
  
  <p>But any member can use the commands then. So, tried follow this one = <a href="https://stackoverflow.com/questions/48612603/permission-system-for-discord-py-bot">Permission System for Discord.py Bot</a> and ended up with this:</p>
  
  <pre><code>@client.command(name='ban')
  async def mod_ban(context, member: discord.User):
      if context.message.author.server_premission.administrator:
          try:
              await client.ban(member, delete_message_days=0)
              await client.say('**{0}** has been banned.'.format(str(member)))
          except Exception as error:
              await client.say(error)
      else:
          await client.say('Looks like you don\'t have the perm.')
  </code></pre>
  
  <p>Which lands me with this error: ;-;</p>
  
  <pre><code>raise MissingRequiredArgument('{0.name} is a required argument that is missing.'.format(param))
  discord.ext.commands.errors.MissingRequiredArgument: member is a required argument that is missing.
  </code></pre>
  
  <p>Also, besides <code>context.message.author.server_premission.administrator</code> I don't only want the roles with Admin perm to use this command. I also want a few other roles with have few perms like <code>manage message</code>, <code>manage roles</code> etc. to use to command too.</p>
  
  <p>Thanks in advance for the help! Also, sorry if I've missed anything stupid or silly ;-;</p>