mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-03 00:25:14 +00:00
Add support for delete_message_seconds ban argument
This commit is contained in:
@ -613,8 +613,9 @@ When mixed with the :data:`typing.Optional` converter you can provide simple and
|
||||
delete_days: typing.Optional[int] = 0, *,
|
||||
reason: str):
|
||||
"""Mass bans members with an optional delete_days parameter"""
|
||||
delete_seconds = delete_days * 86400 # one day
|
||||
for member in members:
|
||||
await member.ban(delete_message_days=delete_days, reason=reason)
|
||||
await member.ban(delete_message_seconds=delete_seconds, reason=reason)
|
||||
|
||||
|
||||
This command can be invoked any of the following ways:
|
||||
|
Reference in New Issue
Block a user