mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-04 01:00:00 +00:00
Documenting that guild.chunk() returns list of members
This commit is contained in:
parent
5c9605fc1b
commit
3d0309ca4a
@ -3325,7 +3325,7 @@ class Guild(Hashable):
|
|||||||
|
|
||||||
await self._state.http.edit_widget(self.id, payload=payload)
|
await self._state.http.edit_widget(self.id, payload=payload)
|
||||||
|
|
||||||
async def chunk(self, *, cache: bool = True) -> None:
|
async def chunk(self, *, cache: bool = True) -> Optional[List[Member]]:
|
||||||
"""|coro|
|
"""|coro|
|
||||||
|
|
||||||
Requests all members that belong to this guild. In order to use this,
|
Requests all members that belong to this guild. In order to use this,
|
||||||
@ -3344,6 +3344,11 @@ class Guild(Hashable):
|
|||||||
-------
|
-------
|
||||||
ClientException
|
ClientException
|
||||||
The members intent is not enabled.
|
The members intent is not enabled.
|
||||||
|
|
||||||
|
Returns
|
||||||
|
--------
|
||||||
|
Optional[List[:class:`Member`]]
|
||||||
|
Returns a list of all the members in the guild.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if not self._state._intents.members:
|
if not self._state._intents.members:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user