title: discord.py How to add Mute command
body: <p>I'm making a discord bot and I really want to make a mute command to mute toxic users.
  This is the code I've currently <a href="http://prntscr.com/ids1sp" rel="nofollow noreferrer">done</a>, this isn't the rewrite version.</p>
  
  <pre><code>    @bot.command(pass_context = True)
  async def mute(ctx, user_id, userName: discord.User):
      if ctx.message.author.server_permissions.administrator:
          user = ctx.message.author
          role = discord.utils.get(user.server.roles, name="Muted")
          await client.add_roles(user, role)
       else:
         embed=discord.Embed(title="Permission Denied.", description="You don't have permission to use this command.", color=0xff00f6)
         await bot.say(embed=embed)
  </code></pre>