From 5422655a863d4ddbfecd4c5040c0d2d723c6e3b9 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 30 Jan 2017 19:04:25 -0500 Subject: [PATCH] Fix parsing of Invite.user --- discord/invite.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/invite.py b/discord/invite.py index 31f3fd6f9..0ae7f02eb 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):