title: 403 Forbidden (error code: 50001): Missing Access when adding role | discord.py
body: <p>I am trying to ass different roles to people rapidly to give users the impression of their name being rainbow ( yes I know its against TOS ), and I am starting by adding roles to people before I remove them. However, when adding roles I get the error in the title of this post. I have looked into this and tried quite a few ways to fix it. The bot has a higher role than the roles being give out. Here is my code and the output:</p>
  <pre><code>import discord
  from discord.ext import commands
  
  bot = commands.Bot(command_prefix=&quot;$&quot;)
  role_name = &quot;Rainbow Six Seige&quot;
  peopleWithRole = []
  guild = discord.Guild 
  
  @bot.event
  async def on_ready():
      print(&quot;Logged in as&quot;)
      print(bot.user.name)
      print(&quot;------&quot;)
      guild = bot.guilds[0]
      colours = [discord.utils.get(guild.roles, name='red'),
                 discord.utils.get(guild.roles, name='green'),
                 discord.utils.get(guild.roles, name='blue')
                 ]
  
      role = discord.utils.find(
          lambda r: r.name == role_name, guild.roles)
          
      for user in guild.members:
          if role in user.roles:
              peopleWithRole.append(user)
  
      for color in colours:
          for user in peopleWithRole:
              await user.add_roles(color)
  
  bot.run(&quot;my token&quot;)
  </code></pre>
  <p>output:</p>
  <pre><code>Logged in as
  test bot
  ------
  Ignoring exception in on_ready
  Traceback (most recent call last):
    File &quot;C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord\client.py&quot;, line 312, in _run_event
      await coro(*args, **kwargs)
    File &quot;C:\Users\User\Desktop\test\test.py&quot;, line 29, in on_ready
      await user.add_roles(color)
    File &quot;C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord\member.py&quot;, line 641, in add_roles
      await req(guild_id, user_id, role.id, reason=reason)
    File &quot;C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord\http.py&quot;, line 241, in request
      raise Forbidden(r, data)
  discord.errors.Forbidden: 403 Forbidden (error code: 50001): Missing Access
  </code></pre>