mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-10-28 15:59:04 +00:00
Use @me endpoint for Client.start_private_message
This commit is contained in:
1 parent
e87d54dd12
commit
a0423e6245
1 file changed
+1
-1
+1
-1
@@ -512,7 +512,7 @@ class Client:
|
||||
'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)
|
||||
log.debug(request_logging_format.format(method='POST', response=r))
|
||||
yield from utils._verify_successful_response(r)
|
||||
|
||||
Reference in new issue
Block a user