DMChannel now uses data manager to instantiate users

This commit is contained in:
Amish Shah
2016-09-10 17:31:51 +01:00
parent 78673139ca
commit 3f52ba27c9

View File

@@ -22,7 +22,7 @@ class DMChannel extends Channel {
* The recipient on the other end of the DM
* @type {User}
*/
this.recipient = this.client.users.get(data.recipients[0].id) || new User(this.client, data.recipients[0]);
this.recipient = this.client.dataManager.newUser(data.recipients[0]);
this.type = 'dm';
this.lastMessageID = data.last_message_id;