Skip to content

Commit

Permalink
docs: update docstring
Browse files Browse the repository at this point in the history
Signed-off-by: Lala Sabathil <lala@pycord.dev>
  • Loading branch information
Lulalaby committed Apr 30, 2023
1 parent 8556ed2 commit bcabf23
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion discord/guild.py
Original file line number Diff line number Diff line change
Expand Up @@ -2123,7 +2123,12 @@ def bans(
Retrieves an :class:`.AsyncIterator` that enables receiving the guild's bans. In order to use this, you must
have the :attr:`~Permissions.ban_members` permission.
Users will always be returned in ascending order sorted by user ID. If both the ``before`` and ``after`` parameters are provided, only before is respected.
Users will always be returned in ascending order sorted by user ID.
If both the ``before`` and ``after`` parameters are provided, only before is respected.
.. versionchanged:: 2.5
The ``before``. and ``after`` parameters were changed. They are now of the type :class:`.abc.Snowflake` instead of
`SnowflakeTime` to comply with the discord api.
.. versionchanged:: 2.0
The ``limit``, ``before``. and ``after`` parameters were added. Now returns a :class:`.BanIterator` instead
Expand Down

0 comments on commit bcabf23

Please sign in to comment.