Add default value to Guild.ban docs

This commit is contained in:
Willy 2022-10-08 02:11:01 -04:00 committed by GitHub
parent 8f19cfe729
commit ba2ad58017
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3415,11 +3415,15 @@ class Guild(Hashable):
delete_message_days: :class:`int`
The number of days worth of messages to delete from the user
in the guild. The minimum is 0 and the maximum is 7.
Defaults to 1 day if neither ``delete_message_days`` nor
``delete_message_seconds`` are passed.
.. deprecated:: 2.1
delete_message_seconds: :class:`int`:
delete_message_seconds: :class:`int`
The number of seconds worth of messages to delete from the user
in the guild. The minimum is 0 and the maximum is 604800 (7 days).
Defaults to 1 day if neither ``delete_message_days`` nor
``delete_message_seconds`` are passed.
.. versionadded:: 2.1
reason: Optional[:class:`str`]