aboutsummaryrefslogtreecommitdiff
path: root/discord/client.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-01-03 08:25:48 -0500
committerRapptz <[email protected]>2017-01-03 09:52:10 -0500
commit5e6bfecb078f076f9b04b145d5241688507cbd5b (patch)
tree5e42d5164d38cde68d3444865709f710d4b8f2f6 /discord/client.py
parentRename MessageChannel abc to Messageable. (diff)
downloaddiscord.py-5e6bfecb078f076f9b04b145d5241688507cbd5b.tar.xz
discord.py-5e6bfecb078f076f9b04b145d5241688507cbd5b.zip
Move away from StateContext and use ConnectionState directly.
Diffstat (limited to 'discord/client.py')
-rw-r--r--discord/client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/client.py b/discord/client.py
index 55dc0f2e..a681adcd 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -1201,7 +1201,7 @@ class Client:
data = yield from self.http.application_info()
return AppInfo(id=data['id'], name=data['name'],
description=data['description'], icon=data['icon'],
- owner=User(state=self.connection.ctx, data=data['owner']))
+ owner=User(state=self.connection, data=data['owner']))
@asyncio.coroutine
def get_user_info(self, user_id):
@@ -1230,4 +1230,4 @@ class Client:
Fetching the user failed.
"""
data = yield from self.http.get_user_info(user_id)
- return User(state=self.connection.ctx, data=data)
+ return User(state=self.connection, data=data)