mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Fix login, clone objects when firing x-Updated events
This commit is contained in:
@@ -33,7 +33,7 @@ var PMChannel = (function (_Channel) {
|
||||
_Channel.call(this, data, client);
|
||||
|
||||
this.type = data.type || "text";
|
||||
this.lastMessageId = data.last_message_id;
|
||||
this.lastMessageId = data.last_message_id || data.lastMessageId;
|
||||
this.messages = new _UtilCache2["default"]("id", 1000);
|
||||
this.recipient = this.client.internal.users.add(new _User2["default"](data.recipient, this.client));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user