aboutsummaryrefslogtreecommitdiff
path: root/discord/client.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-07-23 02:14:02 -0400
committerRapptz <[email protected]>2016-07-23 02:14:02 -0400
commitb862223a1fa4bc8681578ef6ed65a8c0aa2ab616 (patch)
treefaf86fddbae78c358ae54ab495f5d08c4036af0c /discord/client.py
parent[commands] Fix cooldown decorator to work regardless of order. (diff)
downloaddiscord.py-b862223a1fa4bc8681578ef6ed65a8c0aa2ab616.tar.xz
discord.py-b862223a1fa4bc8681578ef6ed65a8c0aa2ab616.zip
Fix TypeError when constructing a channel in start_private_message.
Diffstat (limited to 'discord/client.py')
-rw-r--r--discord/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/client.py b/discord/client.py
index 80b4d2b8..4e3bb243 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -767,7 +767,7 @@ class Client:
raise InvalidArgument('user argument must be a User')
data = yield from self.http.start_private_message(user.id)
- channel = PrivateChannel(id=data['id'], user=user)
+ channel = PrivateChannel(me=self.user, id=data['id'], user=user)
self.connection._add_private_channel(channel)
return channel