mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 05:52:05 +00:00
Fix DM Channels
This commit is contained in:
parent
7ada70f856
commit
b2950b2997
2 changed files with 2 additions and 2 deletions
|
|
@ -56,7 +56,7 @@ class RESTMethods {
|
||||||
channel = chan;
|
channel = chan;
|
||||||
req();
|
req();
|
||||||
})
|
})
|
||||||
.catch(reject);
|
.catch(reject);
|
||||||
} else {
|
} else {
|
||||||
req();
|
req();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ class DMChannel extends Channel {
|
||||||
|
|
||||||
setup(data) {
|
setup(data) {
|
||||||
super.setup(data);
|
super.setup(data);
|
||||||
this.recipient = this.client.store.add('users', new User(this.client, data.recipient));
|
this.recipient = this.client.store.add('users', new User(this.client, data.recipients[0]));
|
||||||
this.lastMessageID = data.last_message_id;
|
this.lastMessageID = data.last_message_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue