mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
Fix login, clone objects when firing x-Updated events
This commit is contained in:
@@ -10,7 +10,7 @@ export default class PMChannel extends Channel {
|
||||
super(data, client);
|
||||
|
||||
this.type = data.type || "text";
|
||||
this.lastMessageId = data.last_message_id;
|
||||
this.lastMessageId = data.last_message_id || data.lastMessageId;
|
||||
this.messages = new Cache("id", 1000);
|
||||
this.recipient = this.client.internal.users.add(new User(data.recipient, this.client));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user