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(