mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 20:28:38 +00:00
Document bulk ban user limit and permission
This commit is contained in:
parent
0362b2fd4e
commit
d853a3f0a7
@ -3694,7 +3694,7 @@ class Guild(Hashable):
|
|||||||
Parameters
|
Parameters
|
||||||
-----------
|
-----------
|
||||||
user: :class:`abc.Snowflake`
|
user: :class:`abc.Snowflake`
|
||||||
The user to kick from their guild.
|
The user to kick from the guild.
|
||||||
reason: Optional[:class:`str`]
|
reason: Optional[:class:`str`]
|
||||||
The reason the user got kicked.
|
The reason the user got kicked.
|
||||||
|
|
||||||
@ -3726,7 +3726,7 @@ class Guild(Hashable):
|
|||||||
Parameters
|
Parameters
|
||||||
-----------
|
-----------
|
||||||
user: :class:`abc.Snowflake`
|
user: :class:`abc.Snowflake`
|
||||||
The user to ban from their guild.
|
The user to ban from the guild.
|
||||||
delete_message_days: :class:`int`
|
delete_message_days: :class:`int`
|
||||||
The number of days worth of messages to delete from the user
|
The number of days worth of messages to delete from the user
|
||||||
in the guild. The minimum is 0 and the maximum is 7.
|
in the guild. The minimum is 0 and the maximum is 7.
|
||||||
@ -3808,14 +3808,14 @@ class Guild(Hashable):
|
|||||||
|
|
||||||
The users must meet the :class:`abc.Snowflake` abc.
|
The users must meet the :class:`abc.Snowflake` abc.
|
||||||
|
|
||||||
You must have :attr:`~Permissions.ban_members` to do this.
|
You must have :attr:`~Permissions.ban_members` and :attr:`~Permissions.manage_guild` to do this.
|
||||||
|
|
||||||
.. versionadded:: 2.4
|
.. versionadded:: 2.4
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
-----------
|
-----------
|
||||||
users: Iterable[:class:`abc.Snowflake`]
|
users: Iterable[:class:`abc.Snowflake`]
|
||||||
The user to ban from their guild.
|
The users to ban from the guild, up to 200 users.
|
||||||
delete_message_seconds: :class:`int`
|
delete_message_seconds: :class:`int`
|
||||||
The number of seconds worth of messages to delete from the user
|
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).
|
in the guild. The minimum is 0 and the maximum is 604800 (7 days).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user