Browse Source

Fix KeyError when creating private channels in start_private_message.

I was not passing the full updated v6 payload.
pull/282/head
Rapptz 9 years ago
parent
commit
fbd628fae3
  1. 2
      discord/client.py

2
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(me=self.user, id=data['id'], user=user)
channel = PrivateChannel(me=self.user, **data)
self.connection._add_private_channel(channel)
return channel

Loading…
Cancel
Save