From 6887d3946ae8d50a96011936ced478098bbf2406 Mon Sep 17 00:00:00 2001 From: Nadir Chowdhury Date: Thu, 1 Apr 2021 02:27:40 +0100 Subject: [PATCH] [docs] Fix fetch_members/guilds documentation --- discord/client.py | 4 +--- discord/guild.py | 4 +--- docs/api.rst | 9 ++++++++- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/discord/client.py b/discord/client.py index 7866ffd1e..0daf011b7 100644 --- a/discord/client.py +++ b/discord/client.py @@ -1076,9 +1076,7 @@ class Client: # Guild stuff def fetch_guilds(self, *, limit=100, before=None, after=None): - """|coro| - - Retrieves an :class:`.AsyncIterator` that enables receiving your guilds. + """Retrieves an :class:`.AsyncIterator` that enables receiving your guilds. .. note:: diff --git a/discord/guild.py b/discord/guild.py index 0df3600d5..eddffdc41 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -1261,9 +1261,7 @@ class Guild(Hashable): return [convert(d) for d in data] def fetch_members(self, *, limit=1000, after=None): - """|coro| - - Retrieves an :class:`.AsyncIterator` that enables receiving the guild's members. In order to use this, + """Retrieves an :class:`.AsyncIterator` that enables receiving the guild's members. In order to use this, :meth:`Intents.members` must be enabled. .. note:: diff --git a/docs/api.rst b/docs/api.rst index 2a081c457..844f18072 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -40,6 +40,10 @@ Client .. autoclass:: Client :members: + :exclude-members: fetch_guilds + + .. automethod:: Client.fetch_guilds + :async-for: AutoShardedClient ~~~~~~~~~~~~~~~~~~ @@ -2914,7 +2918,10 @@ Guild .. autoclass:: Guild() :members: - :exclude-members: audit_logs + :exclude-members: fetch_members, audit_logs + + .. automethod:: fetch_members + :async-for: .. automethod:: audit_logs :async-for: