aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRapptz <[email protected]>2019-02-12 20:21:29 -0500
committerRapptz <[email protected]>2019-02-12 20:22:47 -0500
commit5d78f43e558cdd55e22eb12a090d3d75fd258a8e (patch)
tree9485cf47c706eef9eb315c897e589702423a697a /docs
parentBump aiohttp requirement and fix AsyncWebhookAdapter (diff)
downloaddiscord.py-5d78f43e558cdd55e22eb12a090d3d75fd258a8e.tar.xz
discord.py-5d78f43e558cdd55e22eb12a090d3d75fd258a8e.zip
Expose more information from partial invites, along with counts.
This adds the following information. * `PartialInviteGuild` to replace `Object` patching * `PartialInviteChannel` to replace `Object` patching * Invite.approximate_member_count and Invite.approximate_presence_count The new partial objects provide better documentation on what is expected when you fetch random invites. Fixes #1830
Diffstat (limited to 'docs')
-rw-r--r--docs/api.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/api.rst b/docs/api.rst
index bdb57780..5816f60f 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -2035,6 +2035,17 @@ GroupChannel
.. autocomethod:: typing
:async-with:
+PartialInviteGuild
+~~~~~~~~~~~~~~~~~~~
+
+.. autoclass:: PartialInviteGuild()
+ :members:
+
+PartialInviteChannel
+~~~~~~~~~~~~~~~~~~~~~
+
+.. autoclass:: PartialInviteChannel()
+ :members:
Invite
~~~~~~~