|
@ -2223,6 +2223,9 @@ class Guild(Hashable): |
|
|
if user_ids is not None and query is not None: |
|
|
if user_ids is not None and query is not None: |
|
|
raise ValueError('Cannot pass both query and user_ids') |
|
|
raise ValueError('Cannot pass both query and user_ids') |
|
|
|
|
|
|
|
|
|
|
|
if user_ids is not None and not user_ids: |
|
|
|
|
|
raise ValueError('user_ids must contain at least 1 value') |
|
|
|
|
|
|
|
|
limit = min(100, limit or 5) |
|
|
limit = min(100, limit or 5) |
|
|
return await self._state.query_members(self, query=query, limit=limit, user_ids=user_ids, presences=presences, cache=cache) |
|
|
return await self._state.query_members(self, query=query, limit=limit, user_ids=user_ids, presences=presences, cache=cache) |
|
|
|
|
|
|
|
|