Browse Source

Fix Guild.fetch_members limit parameter typing to be Optional

pull/7699/head
Rapptz 3 years ago
parent
commit
61577677cd
  1. 2
      discord/guild.py

2
discord/guild.py

@ -1854,7 +1854,7 @@ class Guild(Hashable):
return threads
async def fetch_members(self, *, limit: int = 1000, after: SnowflakeTime = MISSING) -> AsyncIterator[Member]:
async def fetch_members(self, *, limit: Optional[int] = 1000, after: SnowflakeTime = MISSING) -> AsyncIterator[Member]:
"""Retrieves an :term:`asynchronous iterator` that enables receiving the guild's members. In order to use this,
:meth:`Intents.members` must be enabled.

Loading…
Cancel
Save