Fix starting PMs

This commit is contained in:
abalabahaha
2016-04-23 10:15:29 -07:00
parent a5517c2c3b
commit 619139f871
4 changed files with 4 additions and 6 deletions

View File

@@ -718,7 +718,7 @@ var InternalClient = (function () {
return Promise.reject(new Error("Unable to resolve resUser to a User"));
}
// start the PM
return this.apiRequest("post", _Constants.Endpoints.USER_CHANNELS(this.user.id), true, {
return this.apiRequest("post", _Constants.Endpoints.ME_CHANNELS, true, {
recipient_id: user.id
}).then(function (res) {
return _this15.private_channels.add(new _StructuresPMChannel2["default"](res, _this15.client));