aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxPolar <[email protected]>2021-02-28 20:35:05 -0800
committerGitHub <[email protected]>2021-02-28 23:35:05 -0500
commit6c40e3b83743ac10157603a156fd56164a1bc1b8 (patch)
tree872cb5be36f8370ff59ae82de332d2733e26e1b1
parentOnly run main() if the module is being executed as a script (diff)
downloaddiscord.py-6c40e3b83743ac10157603a156fd56164a1bc1b8.tar.xz
discord.py-6c40e3b83743ac10157603a156fd56164a1bc1b8.zip
Update docs for discord.Invite.max_uses
This mentions the unlimited uses aspect.
-rw-r--r--discord/invite.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/discord/invite.py b/discord/invite.py
index 627e90ef..a1d794b0 100644
--- a/discord/invite.py
+++ b/discord/invite.py
@@ -258,7 +258,8 @@ class Invite(Hashable):
Attributes
-----------
max_age: :class:`int`
- How long the before the invite expires in seconds. A value of 0 indicates that it doesn't expire.
+ How long the before the invite expires in seconds.
+ A value of ``0`` indicates that it doesn't expire.
code: :class:`str`
The URL fragment used for the invite.
guild: Optional[Union[:class:`Guild`, :class:`Object`, :class:`PartialInviteGuild`]]
@@ -274,6 +275,7 @@ class Invite(Hashable):
How many times the invite has been used.
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`
The user who created the invite.
approximate_member_count: Optional[:class:`int`]