title: "Command raised an exception: AttributeError 'Nonetype' object has no attribute 'id'" when giving a set role
body: <p>I'm trying to make a Reaction Role bot with the ability to set the role given when reacted. I have tried:</p>
  <pre><code>verifyroleid = int(0)
  @bot.command(pass_context=True)
  @has_permissions(administrator=True)
  async def set(ctx, *, roleid=None):
      em = discord.Embed(title=&quot;yBot  |  VERIFY&quot;)
      em.add_field(name=&quot;SUCCESS: &quot;,value=&quot;Set {} as 'verify' role!&quot;.format(roleid))
      em.set_footer(text=&quot;© 2020 - Powered by yanuu ;k#2137&quot;)
      verifyroleid == roleid
      await ctx.send(embed=em)
  
  
  
  
  @bot.command(pass_context=True)
  async def verify(ctx):
      em = discord.Embed(title=&quot;yBOT  |  VERIFY&quot;)
      em.add_field(name=&quot;REACT: &quot;, value=&quot;React '✅' to this message to get verified!&quot;, inline=False)
      em.set_footer(text=&quot;© 2020 - Powered by yanuu ;k#2137&quot;)
      message = await ctx.send(embed=em)
      await message.add_reaction(&quot;✅&quot;)
      reaction, user = await bot.wait_for(&quot;reaction_add&quot;)
      def check(reaction, user):
          return user != bot.user and str(reaction.emoji) in [&quot;✅&quot;]
      while True:
          try:
              reaction, user = await bot.wait_for(&quot;reaction_add&quot;)
              if str(reaction.emoji) == &quot;✅&quot;:
                  await message.remove_reaction(reaction, user)
                  role = discord.utils.get(ctx.guild.roles, id=verifyroleid)
                  await discord.Member.add_roles(user, role)
          except asyncio.TimeoutError:
              await message.delete()
              return
  </code></pre>
  <p>But it results in an error:</p>
  <p>Traceback (most recent call last):
  File &quot;C:\Users\macio\AppData\Roaming\Python\Python38\site-packages\discord\client.py&quot;, line 333, in _run_event
  await coro(*args, **kwargs)
  File &quot;C:\Users&lt;..&gt;\Documents\pythontest\diskord-test.py&quot;, line 99, in on_command_error
  raise error
  File &quot;C:\Users&lt;..&gt;\AppData\Roaming\Python\Python38\site-packages\discord\ext\commands\bot.py&quot;, line 903, in invoke
  await ctx.command.invoke(ctx)
  File &quot;C:\Users&lt;..&gt;\AppData\Roaming\Python\Python38\site-packages\discord\ext\commands\core.py&quot;, line 859, in invoke
  await injected(*ctx.args, **ctx.kwargs)
  File &quot;C:\Users&lt;..&gt;\AppData\Roaming\Python\Python38\site-packages\discord\ext\commands\core.py&quot;, line 94, in wrapped
  raise CommandInvokeError(exc) from exc
  discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'NoneType' object has no attribute 'id'</p>
  <p>How can I fix this?</p>