[docs] Fix fetch_members/guilds documentation
This commit is contained in:
parent
e66141e002
commit
6887d3946a
@ -1076,9 +1076,7 @@ class Client:
|
|||||||
# Guild stuff
|
# Guild stuff
|
||||||
|
|
||||||
def fetch_guilds(self, *, limit=100, before=None, after=None):
|
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::
|
.. note::
|
||||||
|
|
||||||
|
@ -1261,9 +1261,7 @@ class Guild(Hashable):
|
|||||||
return [convert(d) for d in data]
|
return [convert(d) for d in data]
|
||||||
|
|
||||||
def fetch_members(self, *, limit=1000, after=None):
|
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.
|
:meth:`Intents.members` must be enabled.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
@ -40,6 +40,10 @@ Client
|
|||||||
|
|
||||||
.. autoclass:: Client
|
.. autoclass:: Client
|
||||||
:members:
|
:members:
|
||||||
|
:exclude-members: fetch_guilds
|
||||||
|
|
||||||
|
.. automethod:: Client.fetch_guilds
|
||||||
|
:async-for:
|
||||||
|
|
||||||
AutoShardedClient
|
AutoShardedClient
|
||||||
~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~
|
||||||
@ -2914,7 +2918,10 @@ Guild
|
|||||||
|
|
||||||
.. autoclass:: Guild()
|
.. autoclass:: Guild()
|
||||||
:members:
|
:members:
|
||||||
:exclude-members: audit_logs
|
:exclude-members: fetch_members, audit_logs
|
||||||
|
|
||||||
|
.. automethod:: fetch_members
|
||||||
|
:async-for:
|
||||||
|
|
||||||
.. automethod:: audit_logs
|
.. automethod:: audit_logs
|
||||||
:async-for:
|
:async-for:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user