title: How can I add a role to a user with discord.py/my discord bot?
body: <p>I've made a little discord bot in python to run it on my server, but i don't want to have randoms in my server so i created this command.<br>
  When executed the &quot;code&quot; (can also seen as password), the user get the user role (from the visitor role)</p>
  <p>My code:</p>
  <pre class="lang-py prettyprint-override"><code>@client.command()                                                                   
  async def test(ctx):                                                               
      user = ctx.message.author                                                       
      await user.add_roles(discord.utils.get(user.guild.roles, id=...))
  </code></pre>
  <p>The error I get:</p>
  <pre><code>discord.ext.commands.errors.CommandInvokeError: Command raised an exception:
  Forbidden: 403 Forbidden (error code: 50013): Missing Permissions
  </code></pre>
  <p>What I tried so far:</p>
  <ul>
  <li>Give the bot all permissions</li>
  <li>Elevate the bot at highest hierarchy.</li>
  </ul>
  <p>So, could anyone please help me?</p>