mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-14 09:50:03 +00:00
Fix KeyError when creating private channels in start_private_message.
I was not passing the full updated v6 payload.
This commit is contained in:
parent
ad226f2020
commit
fbd628fae3
@ -767,7 +767,7 @@ class Client:
|
|||||||
raise InvalidArgument('user argument must be a User')
|
raise InvalidArgument('user argument must be a User')
|
||||||
|
|
||||||
data = yield from self.http.start_private_message(user.id)
|
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)
|
self.connection._add_private_channel(channel)
|
||||||
return channel
|
return channel
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user