aboutsummaryrefslogtreecommitdiff
path: root/discord/client.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-07-21 01:16:29 -0400
committerRapptz <[email protected]>2016-07-21 01:16:29 -0400
commitb0f5584961bd4184290cdf140a57452336de08ef (patch)
tree59fb26ae5c222d39e205fd76356a2d320ef61984 /discord/client.py
parentFix bug where discriminators would not update in PRESENCE_UPDATE. (diff)
downloaddiscord.py-b0f5584961bd4184290cdf140a57452336de08ef.tar.xz
discord.py-b0f5584961bd4184290cdf140a57452336de08ef.zip
Add AppInfo.owner attribute.
Diffstat (limited to 'discord/client.py')
-rw-r--r--discord/client.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/discord/client.py b/discord/client.py
index b92120a9..80b4d2b8 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -61,7 +61,7 @@ log = logging.getLogger(__name__)
request_logging_format = '{method} {response.url} has returned {response.status}'
request_success_log = '{response.url} with {json} received {data}'
-AppInfo = namedtuple('AppInfo', 'id name description icon')
+AppInfo = namedtuple('AppInfo', 'id name description icon owner')
def app_info_icon_url(self):
"""Retrieves the application's icon_url if it exists. Empty string otherwise."""
if not self.icon:
@@ -2688,6 +2688,7 @@ class Client:
"""
data = yield from self.http.application_info()
return AppInfo(id=data['id'], name=data['name'],
- description=data['description'], icon=data['icon'])
+ description=data['description'], icon=data['icon'],
+ owner=User(**data['owner']))