diff options
| author | Rapptz <[email protected]> | 2016-07-25 06:16:22 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-07-25 06:16:22 -0400 |
| commit | fbd628fae3e82fb9d10fce5c0e090a3ac5e45b13 (patch) | |
| tree | 7546a6dd87105db333e22009323ae7f30c239208 /discord/client.py | |
| parent | Add new External Emojis permission. (diff) | |
| download | discord.py-fbd628fae3e82fb9d10fce5c0e090a3ac5e45b13.tar.xz discord.py-fbd628fae3e82fb9d10fce5c0e090a3ac5e45b13.zip | |
Fix KeyError when creating private channels in start_private_message.
I was not passing the full updated v6 payload.
Diffstat (limited to 'discord/client.py')
| -rw-r--r-- | discord/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/client.py b/discord/client.py index 4e3bb243..0c419450 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(me=self.user, id=data['id'], user=user) + channel = PrivateChannel(me=self.user, **data) self.connection._add_private_channel(channel) return channel |