diff options
| author | Stanisław Jelnicki <[email protected]> | 2021-05-13 02:34:44 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-05-12 20:34:44 -0400 |
| commit | 9b4e820bbe432081b59936975202853455c938a4 (patch) | |
| tree | 54a0908057d1f4a556fc78b5c0371ac1eeee70c3 | |
| parent | Fix issues with imports causing NameErrors (diff) | |
| download | discord.py-9b4e820bbe432081b59936975202853455c938a4.tar.xz discord.py-9b4e820bbe432081b59936975202853455c938a4.zip | |
Document Invite.inviter as optional
| -rw-r--r-- | discord/invite.py | 2 | ||||
| -rw-r--r-- | docs/api.rst | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/discord/invite.py b/discord/invite.py index ea551e1d..213ef5a4 100644 --- a/discord/invite.py +++ b/discord/invite.py @@ -262,7 +262,7 @@ class Invite(Hashable): max_uses: :class:`int` How many times the invite can be used. A value of ``0`` indicates that it has unlimited uses. - inviter: :class:`User` + inviter: Optional[:class:`User`] The user who created the invite. approximate_member_count: Optional[:class:`int`] The approximate number of members in the guild. diff --git a/docs/api.rst b/docs/api.rst index 44b1e727..bacbc0e9 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -2010,9 +2010,9 @@ of :class:`enum.Enum`. .. attribute:: stream The invite targets a stream. - + .. attribute:: embedded_application - + The invite targets an embedded application activity. .. class:: VideoQualityMode @@ -2538,7 +2538,7 @@ AuditLogDiff See also :attr:`Invite.inviter`. - :type: :class:`User` + :type: Optional[:class:`User`] .. attribute:: max_uses |