Document Invite.inviter as optional

This commit is contained in:
Stanisław Jelnicki 2021-05-13 02:34:44 +02:00 committed by GitHub
parent 5fa64e83e0
commit 9b4e820bbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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.

View File

@ -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