[Filter] Dispatch event on_filter_message_delete (#2483)

This commit is contained in:
entchen66 2019-02-27 06:27:10 +01:00 committed by Toby Harradine
parent 46f9cae0ef
commit 6051ccb23c

View File

@ -367,6 +367,7 @@ class Filter(commands.Cog):
except discord.HTTPException:
pass
else:
self.bot.dispatch("filter_message_delete", message, hits)
if filter_count > 0 and filter_time > 0:
user_count += 1
await self.settings.member(author).filter_count.set(user_count)