aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/client.py2
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)