mirror of
				https://github.com/Rapptz/discord.py.git
				synced 2025-10-31 05:23:03 +00:00 
			
		
		
		
	Documenting that guild.chunk() returns list of members
This commit is contained in:
		| @@ -3325,7 +3325,7 @@ class Guild(Hashable): | ||||
|  | ||||
|         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| | ||||
|  | ||||
|         Requests all members that belong to this guild. In order to use this, | ||||
| @@ -3344,6 +3344,11 @@ class Guild(Hashable): | ||||
|         ------- | ||||
|         ClientException | ||||
|             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: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user