[Counting] Error
Closed this issue · 5 comments
Menteroth commented
Ignoring exception in on_message
Traceback (most recent call last):
File "c:\__\coding\redenv\lib\site-packages\discord\client.py", line 333, in _run_event
await coro(*args, **kwargs)
File "C:\__\coding\Soundwave\cogs\CogManager\cogs\counting\counting.py", line 252, in on_message
await message.delete()
File "c:\__\coding\redenv\lib\site-packages\discord\message.py", line 801, in delete
await self._state.http.delete_message(self.channel.id, self.id)
File "c:\__\coding\redenv\lib\site-packages\discord\http.py", line 243, in request
raise NotFound(r, data)
discord.errors.NotFound: 404 Not Found (error code: 10008): Unknown Message
Kreusada commented
This is most likely because the message was already deleted previously by the author, someone with permissions, or from another source
elijabesu commented
Please, do let me know if this was fixed with your merge :)
Menteroth commented
What can I do to test it?
Kreusada commented
It would be very difficult to reproduce given that it was a very rare exception. You'd probably need to find a 3rd party cog or make something yourself that will delete messages in a channel, and then just hope that the message is deleted before counting comes into effect. May be very difficult, I can help you out if you wish. I think the PR should've covered it however, so this issue is probably good to go now.