title: Discord.py | add role to someone
body: <p>I have trouble with making an &quot;add role&quot; command in discord.py. I don't know what is wrong; it just doesn't work.</p>
  <pre><code>@client.command()
  @commands.has_role(&quot;Admin&quot;)
  async def addrole(ctx):
      user = ctx.message.author
      role = discord.utils.get(user.server.roles, name=&quot;Test&quot;)
      await client.add_roles(user, role)
  </code></pre>