From 79fd40a8e3d5837c6c0396e1965dcec48d444f1b Mon Sep 17 00:00:00 2001 From: ErrorNoInternet Date: Wed, 8 Jan 2025 14:27:40 -0500 Subject: [PATCH] feat(commands/voice/clear): add --attachments --- commands/tools.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/commands/tools.py b/commands/tools.py index 8f7f572..fb4e8d5 100644 --- a/commands/tools.py +++ b/commands/tools.py @@ -55,6 +55,12 @@ async def clear(message): action="store_true", help="delete messages with reactions", ) + parser.add_argument( + "-A", + "--attachments", + action="store_true", + help="delete messages with attachments", + ) parser.add_argument( "-d", "--delete-command", @@ -96,6 +102,8 @@ async def clear(message): c.append(m.author.id in i) if args.reactions: c.append(len(m.reactions) > 0) + if args.attachments: + c.append(len(m.attachments) > 0) return all(c) messages = len(