mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
DMChannel now uses data manager to instantiate users
This commit is contained in:
parent
78673139ca
commit
3f52ba27c9
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue