mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
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
This commit is contained in:
1 parent
e2478b17c9
commit
5d78f43e55
6 files changed
+187
-27
No files matched your search
@@ -2035,6 +2035,17 @@ GroupChannel
|
||||
.. autocomethod:: typing
|
||||
:async-with:
|
||||
|
||||
PartialInviteGuild
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. autoclass:: PartialInviteGuild()
|
||||
:members:
|
||||
|
||||
PartialInviteChannel
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. autoclass:: PartialInviteChannel()
|
||||
:members:
|
||||
|
||||
Invite
|
||||
~~~~~~~
|
||||
|
||||
Reference in new issue
Block a user