feat(commands/voice/clear): add --attachments
This commit is contained in:
parent
d6150a664f
commit
79fd40a8e3
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user