mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Fixed options + message cache limit + server member count + leaving users
This commit is contained in:
@@ -33,8 +33,8 @@ var PMChannel = (function (_Channel) {
|
||||
_Channel.call(this, data, client);
|
||||
|
||||
this.type = data.type || "text";
|
||||
this.lastMessageId = data.last_message_id || data.lastMessageId;
|
||||
this.messages = new _UtilCache2["default"]("id", 1000);
|
||||
this.lastMessageID = data.last_message_id || data.lastMessageID;
|
||||
this.messages = new _UtilCache2["default"]("id", client.options.maxCachedMessages);
|
||||
this.recipient = this.client.internal.users.add(new _User2["default"](data.recipient, this.client));
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ var TextChannel = (function (_ServerChannel) {
|
||||
|
||||
this.topic = data.topic;
|
||||
this.lastMessageID = data.last_message_id || data.lastMessageID;
|
||||
this.messages = new _UtilCache2["default"]("id", client.options.maximumMessages);
|
||||
this.messages = new _UtilCache2["default"]("id", client.options.maxCachedMessages);
|
||||
}
|
||||
|
||||
/* warning! may return null */
|
||||
|
||||
Reference in New Issue
Block a user