mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
Fixed start PM
This commit is contained in:
@@ -129,6 +129,9 @@ class InternalClient {
|
||||
request
|
||||
.post(`${Endpoints.USER_CHANNELS(user.id) }`)
|
||||
.set("authorization", self.token)
|
||||
.send({
|
||||
recipient_id: user.id
|
||||
})
|
||||
.end((err, res) => {
|
||||
if (err) {
|
||||
reject(new Error(err.response.text));
|
||||
@@ -169,7 +172,7 @@ class InternalClient {
|
||||
|
||||
self.resolver.resolveChannel(where)
|
||||
.then(next)
|
||||
.catch(e => reject(new Error("Error resolving destination")));
|
||||
.catch(e => reject(new Error("Error resolving destination - "+e)));
|
||||
|
||||
function next(destination) {
|
||||
//var destination;
|
||||
|
||||
Reference in New Issue
Block a user