diff --git a/discord/invite.py b/discord/invite.py index ea551e1d5..213ef5a44 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 44b1e727e..bacbc0e97 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