mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-08 12:18:54 -05:00
[Filter] Dispatch event on_filter_message_delete (#2483)
This commit is contained in:
parent
46f9cae0ef
commit
6051ccb23c
@ -367,6 +367,7 @@ class Filter(commands.Cog):
|
|||||||
except discord.HTTPException:
|
except discord.HTTPException:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
self.bot.dispatch("filter_message_delete", message, hits)
|
||||||
if filter_count > 0 and filter_time > 0:
|
if filter_count > 0 and filter_time > 0:
|
||||||
user_count += 1
|
user_count += 1
|
||||||
await self.settings.member(author).filter_count.set(user_count)
|
await self.settings.member(author).filter_count.set(user_count)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user