title: How do you remove a role from a user?
body: <p>I'm trying to remove a role from a user with a command but I'm not quite sure how the command works. </p>
  
  <p>Here is the code:</p>
  
  <pre><code>@bot.command(pass_context=True)
  @commands.has_role('staff')
  async def mute(ctx, user: discord.Member):
      await bot.remove_roles(user, 'member')
      await bot.say("{} has been muted from chat".format(user.name))
  </code></pre>