diff options
| author | Rapptz <[email protected]> | 2015-12-06 04:25:22 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-12-06 04:25:22 -0500 |
| commit | a0423e62456626424829d12cba5d89640db1660e (patch) | |
| tree | 9d06e352eb44ffa909dceb2a076ac593b79cb770 | |
| parent | Update example code. (diff) | |
| download | discord.py-a0423e62456626424829d12cba5d89640db1660e.tar.xz discord.py-a0423e62456626424829d12cba5d89640db1660e.zip | |
Use @me endpoint for Client.start_private_message
| -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 f502d980..09165a77 100644 --- a/discord/client.py +++ b/discord/client.py @@ -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) |