mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Fix DM Channels
This commit is contained in:
@@ -56,7 +56,7 @@ class RESTMethods {
|
||||
channel = chan;
|
||||
req();
|
||||
})
|
||||
.catch(reject);
|
||||
.catch(reject);
|
||||
} else {
|
||||
req();
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ class DMChannel extends Channel {
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user