diff options
| author | Rapptz <[email protected]> | 2019-02-12 20:21:29 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-02-12 20:22:47 -0500 |
| commit | 5d78f43e558cdd55e22eb12a090d3d75fd258a8e (patch) | |
| tree | 9485cf47c706eef9eb315c897e589702423a697a /docs | |
| parent | Bump aiohttp requirement and fix AsyncWebhookAdapter (diff) | |
| download | discord.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.rst | 11 |
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 ~~~~~~~ |