aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-01-30 19:04:25 -0500
committerRapptz <[email protected]>2017-01-30 19:04:25 -0500
commit5422655a863d4ddbfecd4c5040c0d2d723c6e3b9 (patch)
tree8a4c1f37e97894c33f52ecd0bcd1fda976cd29f9
parentFaster implementation of Guild.default_channel. (diff)
downloaddiscord.py-5422655a863d4ddbfecd4c5040c0d2d723c6e3b9.tar.xz
discord.py-5422655a863d4ddbfecd4c5040c0d2d723c6e3b9.zip
Fix parsing of Invite.user
-rw-r--r--discord/invite.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/invite.py b/discord/invite.py
index 31f3fd6f..0ae7f02e 100644
--- a/discord/invite.py
+++ b/discord/invite.py
@@ -53,7 +53,7 @@ class Invite(Hashable):
max_age: int
How long the before the invite expires in seconds. A value of 0 indicates that it doesn't expire.
code: str
- The URL fragment used for the invite. :attr:`xkcd` is also a possible fragment.
+ The URL fragment used for the invite.
guild: :class:`Guild`
The guild the invite is for.
revoked: bool
@@ -89,7 +89,7 @@ class Invite(Hashable):
self.max_uses = data.get('max_uses')
inviter_data = data.get('inviter')
- self.inviter = None if inviter_data is None else User(state=state, data=data)
+ self.inviter = None if inviter_data is None else User(state=state, data=inviter_data)
self.channel = data.get('channel')
def __str__(self):