Filters that attempt to delete offending message(s) should check whether or not the message was sent in a DM, since the bot cannot delete others' DM messages.
Forbidden: 403 Forbidden (error code: 50003): Cannot execute action on a DM channel
File "discord/client.py", line 312, in _run_event
await coro(*args, **kwargs)
File "bot/cogs/filtering.py", line 114, in on_message
await self._filter_message(msg)
File "bot/cogs/filtering.py", line 176, in _filter_message
await msg.delete()
File "discord/message.py", line 762, in delete
await self._state.http.delete_message(self.channel.id, self.id)
File "discord/http.py", line 221, in request
raise Forbidden(r, data)
Unhandled exception in on_message.
Filters that attempt to delete offending message(s) should check whether or not the message was sent in a DM, since the bot cannot delete others' DM messages.
Sentry Issue: BOT-3W