mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 12:18:59 +00:00
Use @me endpoint for Client.start_private_message
This commit is contained in:
parent
e87d54dd12
commit
a0423e6245
@ -512,7 +512,7 @@ class Client:
|
|||||||
'recipient_id': user.id
|
'recipient_id': user.id
|
||||||
}
|
}
|
||||||
|
|
||||||
url = '{}/{}/channels'.format(endpoints.USERS, self.user.id)
|
url = '{}/@me/channels'.format(endpoints.USERS)
|
||||||
r = yield from self.session.post(url, data=to_json(payload), headers=self.headers)
|
r = yield from self.session.post(url, data=to_json(payload), headers=self.headers)
|
||||||
log.debug(request_logging_format.format(method='POST', response=r))
|
log.debug(request_logging_format.format(method='POST', response=r))
|
||||||
yield from utils._verify_successful_response(r)
|
yield from utils._verify_successful_response(r)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user