mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
Attempt to fix startPM
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user