title: Discord py Error in on_delete_message -> Unknown Message
body: <p>I'm making a bot for my discord channel and I got an error in the on_delete_message function.</p>
  <p>The weird thing is I got basically the same thing in a different function: on_reaction_clear, and it seems to be fine.</p>
  <p>The problem was thrown in the async for user in reaction.users(): line and only in the on_reaction_delete function not in the one above</p>
  <pre class="lang-py prettyprint-override"><code>@client.event
  async def on_reaction_clear(message, reactions):
      global con
  
      cur = con.cursor()
  
      for reaction in message.reactions:
          async for user in reaction.users():
              cur.execute('SELECT count FROM reactions WHERE emoji = &quot;{0}&quot; AND name = &quot;{1}&quot; AND channel = &quot;{2}&quot;'.format(str(reaction.emoji), str(user.id), str(reaction.channel_id)))
              
              count = cur.fetchone()
              if (count[0] &gt; 0):
                  cur.execute('UPDATE reactions SET count = count - 1 WHERE emoji = &quot;{0}&quot; AND name = &quot;{1}&quot; AND channel = &quot;{2}&quot;'.format(str(reaction.emoji), str(user.id), str(reaction.channel_id)))
              else:
                  cur.execute('DELETE FROM reactions WHERE emoji = &quot;{0}&quot; AND name = &quot;{1}&quot; AND channel = &quot;{2}&quot;'.format(str(reaction.emoji), str(user.id), str(reaction.channel_id)))
  
  
  @client.event
  async def on_message_delete(message):
      global con
  
      cur = con.cursor()
  
      for reaction in message.reactions:
          async for user in reaction.users():
              cur.execute('SELECT count FROM reactions WHERE emoji = &quot;{0}&quot; AND name = &quot;{1}&quot; AND channel = &quot;{2}&quot;'.format(str(reaction.emoji), str(user.id), str(reaction.channel_id)))
              
              count = cur.fetchone()
              if (count[0] &gt; 0):
                  cur.execute('UPDATE reactions SET count = count - 1 WHERE emoji = &quot;{0}&quot; AND name = &quot;{1}&quot; AND channel = &quot;{2}&quot;'.format(str(reaction.emoji), str(user.id), str(reaction.channel_id)))
              else:
                  cur.execute('DELETE FROM reactions WHERE emoji = &quot;{0}&quot; AND name = &quot;{1}&quot; AND channel = &quot;{2}&quot;'.format(str(reaction.emoji), str(user.id), str(reaction.channel_id)))
      
      print(&quot;done&quot;)
  </code></pre>
  <p>the error message:</p>
  <pre><code>Ignoring exception in command None:
  discord.ext.commands.errors.CommandNotFound: Command &quot;asd&quot; is not found
  Ignoring exception in on_message_delete
  Traceback (most recent call last):
    File &quot;C:\Users\seb82\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\seb82\source\reaction-counter-bot\reaction-counter-bot.py&quot;, line 145, in on_message_delete
      async for user in reaction.users():
    File &quot;C:\Users\seb82\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord\iterators.py&quot;, line 86, in __anext__
      msg = await self.next()
    File &quot;C:\Users\seb82\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord\iterators.py&quot;, line 139, in next
      await self.fill_users()
    File &quot;C:\Users\seb82\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord\iterators.py&quot;, line 154, in fill_users
      data = await self.getter(self.channel_id, self.message.id, self.emoji, retrieve, after=after)
    File &quot;C:\Users\seb82\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord\http.py&quot;, line 243, in request
      raise NotFound(r, data)
  discord.errors.NotFound: 404 Not Found (error code: 10008): Unknown Message
  </code></pre>
  <p>Hope you guys can help me out :)</p>