From 3d0309ca4af63e76af4c34d656560d18c920a435 Mon Sep 17 00:00:00 2001 From: "Scrumpy (Jay)" Date: Sun, 6 Mar 2022 02:32:27 +0000 Subject: [PATCH] Documenting that guild.chunk() returns list of members --- discord/guild.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/discord/guild.py b/discord/guild.py index e14cc3153..0716200fb 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -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: