mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-06 20:07:17 +00:00
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`
|
max_uses: :class:`int`
|
||||||
How many times the invite can be used.
|
How many times the invite can be used.
|
||||||
A value of ``0`` indicates that it has unlimited uses.
|
A value of ``0`` indicates that it has unlimited uses.
|
||||||
inviter: :class:`User`
|
inviter: Optional[:class:`User`]
|
||||||
The user who created the invite.
|
The user who created the invite.
|
||||||
approximate_member_count: Optional[:class:`int`]
|
approximate_member_count: Optional[:class:`int`]
|
||||||
The approximate number of members in the guild.
|
The approximate number of members in the guild.
|
||||||
|
@ -2010,9 +2010,9 @@ of :class:`enum.Enum`.
|
|||||||
.. attribute:: stream
|
.. attribute:: stream
|
||||||
|
|
||||||
The invite targets a stream.
|
The invite targets a stream.
|
||||||
|
|
||||||
.. attribute:: embedded_application
|
.. attribute:: embedded_application
|
||||||
|
|
||||||
The invite targets an embedded application activity.
|
The invite targets an embedded application activity.
|
||||||
|
|
||||||
.. class:: VideoQualityMode
|
.. class:: VideoQualityMode
|
||||||
@ -2538,7 +2538,7 @@ AuditLogDiff
|
|||||||
|
|
||||||
See also :attr:`Invite.inviter`.
|
See also :attr:`Invite.inviter`.
|
||||||
|
|
||||||
:type: :class:`User`
|
:type: Optional[:class:`User`]
|
||||||
|
|
||||||
.. attribute:: max_uses
|
.. attribute:: max_uses
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user