title: (TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType') hikari.lightbulb
body: <pre class="lang-py prettyprint-override"><code>@bot.command
  @lightbulb.option('modifier','add or subtracts from the original roll', required=False)
  @lightbulb.option('op','add or sub', required=False)
  @lightbulb.option('sides', 'sides on the die')
  @lightbulb.command('r', 'rolls a set of dice')
  @lightbulb.implements(lightbulb.PrefixCommand)
  async def roll(ctx):
      sides, op, mod = ctx.options.sides, ctx.options.op, ctx.options.modifier
      sides = sides.split(&quot;d&quot;)
      tDice = sides[0]
      tSides = sides[1]
  
      if mod == &quot;&quot;: mod = &quot;0&quot;
      if op == &quot;-&quot;:
          mod = int(mod)
          mod = 0 - mod
      else:
          mod = int(mod)
          op = &quot;+&quot;
      if tDice == &quot;&quot;: tDice = &quot;1&quot;
      
      tDice,tSides = int(tDice),int(tSides)
      tRoll = [random.randint(1,tSides) for i in range(tDice)]
      tRoll1 = int(math.fsum(tRoll))
      total = tRoll1 + mod
      
      await ctx.respond(f&quot;{total}&quot;)
  </code></pre>
  <p>I'm using hikari.lightbulb, and I honestly dont see a problem with my code, but i keep getting this error</p>
  <blockquote>
  <p>Traceback (most recent call last):
  File &quot;/home/toritoab01/GitHub/RPG-&gt;Haven/rpgHaven/lib/python3.9/site-packages/lightbulb/app.py&quot;, line &gt;973, in handle_messsage_create_for_prefix_commands
  await self.process_prefix_commands(context)
  File &quot;/home/toritoab01/GitHub/RPG-&gt;Haven/rpgHaven/lib/python3.9/site-packages/lightbulb/app.py&quot;, line &gt;945, in process_prefix_commands
  await context.invoke()
  File &quot;/home/toritoab01/GitHub/RPG-&gt;Haven/rpgHaven/lib/python3.9/site-&gt;packages/lightbulb/context/base.py&quot;, line 276, in invoke
  await self.command.invoke(self)
  File &quot;/home/toritoab01/GitHub/RPG-&gt;Haven/rpgHaven/lib/python3.9/site-&gt;packages/lightbulb/commands/prefix.py&quot;, line 112, in invoke
  await self(context)
  File &quot;/home/toritoab01/GitHub/RPG-&gt;Haven/rpgHaven/lib/python3.9/site-&gt;packages/lightbulb/commands/base.py&quot;, line 357, in <strong>call</strong>
  return await self.callback(context)
  File &quot;/home/toritoab01/GitHub/RPG-Haven/main.py&quot;, line 46, in roll
  mod = int(mod)
  TypeError: int() argument must be a string, a bytes-like object or a &gt;number, not 'NoneType'</p>
  </blockquote>
  <p>The above exception was the direct cause of the following exception:</p>
  <p>Traceback (most recent call last):
  File &quot;/home/toritoab01/GitHub/RPG-Haven/rpgHaven/lib/python3.9/site-packages/lightbulb/app.py&quot;, line 992, in handle_messsage_create_for_prefix_commands
  raise new_exc
  lightbulb.errors.CommandInvocationError: An error occurred during command 'r' invocation</p>
  <p>in regards to my &quot;mod&quot; variable  Any advice?</p>