mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[Mod] Hotfix for wrongful deletion of messages /w attachments
This commit is contained in:
parent
a29ed0c381
commit
a7200b0e44
@ -894,6 +894,8 @@ class Mod:
|
||||
msgs = self.cache[author]
|
||||
if len(msgs) == 3 and \
|
||||
msgs[0].content == msgs[1].content == msgs[2].content:
|
||||
if any([m.attachments for m in msgs]):
|
||||
return False
|
||||
try:
|
||||
await self.bot.delete_message(message)
|
||||
return True
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user