mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fix starting PMs
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user