Fix TypeError when constructing a channel in start_private_message.

This commit is contained in:
Rapptz 2016-07-23 02:14:02 -04:00
parent 1a186c5a55
commit b862223a1f

View File

@ -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