Attempt to fix startPM

This commit is contained in:
abalabahaha
2016-03-11 22:12:15 -08:00
parent d2a9f15e82
commit ea80677a79
4 changed files with 4 additions and 16 deletions

View File

@@ -576,7 +576,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(user.id), true, {
return this.apiRequest("post", _Constants.Endpoints.USER_CHANNELS(this.user.id), true, {
recipient_id: user.id
}).then(function (res) {
return _this13.private_channels.add(new _StructuresPMChannel2["default"](res, _this13.client));