From db4fd9e883c0e87c75b3418fe36d8a32b32c2531 Mon Sep 17 00:00:00 2001 From: Andy <70635394+Hirakudev@users.noreply.github.com> Date: Wed, 1 Jun 2022 07:36:51 +0100 Subject: [PATCH] Fix documentation errors in discord.Invite and on_integration_update --- discord/invite.py | 12 ++++++------ docs/api.rst | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/discord/invite.py b/discord/invite.py index b44531313..cf27c731c 100644 --- a/discord/invite.py +++ b/discord/invite.py @@ -331,7 +331,7 @@ class Invite(Hashable): Attributes ----------- - max_age: :class:`int` + max_age: Optional[:class:`int`] How long before the invite expires in seconds. A value of ``0`` indicates that it doesn't expire. code: :class:`str` @@ -343,16 +343,16 @@ class Invite(Hashable): guild: Optional[Union[:class:`Guild`, :class:`Object`, :class:`PartialInviteGuild`]] The guild the invite is for. Can be ``None`` if not a guild invite. - revoked: :class:`bool` + revoked: Optional[:class:`bool`] Indicates if the invite has been revoked. - created_at: :class:`datetime.datetime` + created_at: Optional[:class:`datetime.datetime`] An aware UTC datetime object denoting the time the invite was created. - temporary: :class:`bool` + temporary: Optional[:class:`bool`] Indicates that the invite grants temporary membership. If ``True``, members who joined via this invite will be kicked upon disconnect. - uses: :class:`int` + uses: Optional[:class:`int`] How many times the invite has been used. - max_uses: :class:`int` + max_uses: Optional[:class:`int`] How many times the invite can be used. A value of ``0`` indicates that it has unlimited uses. inviter: Optional[:class:`User`] diff --git a/docs/api.rst b/docs/api.rst index 8e8f55d46..80cf83158 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -770,7 +770,7 @@ Integrations .. versionadded:: 2.0 - :param integration: The integration that was created. + :param integration: The integration that was updated. :type integration: :class:`Integration` .. function:: on_guild_integrations_update(guild)