Document Invite.inviter as optional
This commit is contained in:
parent
5fa64e83e0
commit
9b4e820bbe
@ -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.
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user