Skip to content

Commit 10a073c

Browse files
authored
Update guild.py
1 parent 85c6f71 commit 10a073c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

discord/guild.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,18 @@ class Guild(Hashable):
253253
The guild's NSFW level.
254254
255255
.. versionadded:: 2.0
256+
257+
approximate_member_count: Optional[:class:`int`]
258+
The approximate number of members in the guild. This is ``None`` unless the guild is obtained
259+
using :meth:`Client.fetch_guild` with ``with_counts=True``.
260+
.. versionadded:: 2.0
261+
262+
approximate_presence_count: Optional[:class:`int`]
263+
The approximate number of members currently active in the guild.
264+
This includes idle, dnd, online, and invisible members. Offline members are excluded.
265+
This is ``None`` unless the guild is obtained using :meth:`Client.fetch_guild`
266+
with ``with_counts=True``.
267+
.. versionadded:: 2.0
256268
"""
257269

258270
__slots__ = (

0 commit comments

Comments
 (0)