mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-05 17:02:32 -05:00
Bump deps (including d.py 2.5 bump) (#6529)
Co-authored-by: Kowlin <10947836+Kowlin@users.noreply.github.com>
This commit is contained in:
@@ -708,11 +708,19 @@ class Cleanup(commands.Cog):
|
||||
def check(m):
|
||||
if m.attachments:
|
||||
return False
|
||||
if m.components:
|
||||
return False
|
||||
if m.poll:
|
||||
return False
|
||||
if m.activity:
|
||||
return False
|
||||
ref = m.reference
|
||||
c = (
|
||||
m.author.id,
|
||||
m.content,
|
||||
[embed.to_dict() for embed in m.embeds],
|
||||
[sticker.id for sticker in m.stickers],
|
||||
ref and (ref.type, ref.message_id, ref.channel_id),
|
||||
)
|
||||
if c in msgs:
|
||||
spam.append(m)
|
||||
|
||||
Reference in New Issue
Block a user