Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Guild.query_members may accept empty query and limit #2419

Merged
merged 8 commits into from
Apr 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update guild.py
Co-authored-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com>
Signed-off-by: UK <41271523+NeloBlivion@users.noreply.github.com>
  • Loading branch information
NeloBlivion and Dorukyum authored Apr 16, 2024
commit 4f901953d5e374b78310a06bba5fa606b90c4958
4 changes: 2 additions & 2 deletions discord/guild.py
Original file line number Diff line number Diff line change
Expand Up @@ -3384,8 +3384,8 @@ async def query_members(

.. versionadded:: 1.4
limit: Optional[:class:`int`]
The maximum number of members to send back. If no query is passed, pass ``None`` to return all members.
If you specify a ``query`` or ``user_ids``, this must be between 1 and 100. Defaults to 5.
The maximum number of members to send back. If no query is passed, passing ``None`` returns all members.
If a ``query`` or ``user_ids`` is passed, must be between 1 and 100. Defaults to 5.
presences: Optional[:class:`bool`]
Whether to request for presences to be provided. This defaults
to ``False``.
Expand Down
Loading