mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fix login, clone objects when firing x-Updated events
This commit is contained in:
@@ -29,7 +29,7 @@ var TextChannel = (function (_ServerChannel) {
|
||||
_ServerChannel.call(this, data, client, server);
|
||||
|
||||
this.topic = data.topic;
|
||||
this.lastMessageID = data.last_message_id;
|
||||
this.lastMessageID = data.last_message_id || data.lastMessageID;
|
||||
this.messages = new _UtilCache2["default"]("id", client.options.maximumMessages);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user