From 4afadaaa2611d2be7161e2ead693e9523adaf830 Mon Sep 17 00:00:00 2001 From: benji7425 Date: Wed, 3 Jan 2018 01:45:44 +0000 Subject: [PATCH] Update d.js message caching settings --- discord-bot-core/Client.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/discord-bot-core/Client.js b/discord-bot-core/Client.js index ab673ea..6703ea0 100644 --- a/discord-bot-core/Client.js +++ b/discord-bot-core/Client.js @@ -17,7 +17,11 @@ module.exports = class Client extends Discord.Client { * @param {*} guildDataModel GuildData model to be used for app; must extend BaseGuildData */ constructor(token, commandsDir, guildDataModel) { - super(); + super({ + messageCacheMaxSize: 16, + messageCacheLifetime: 60, + messageSweepInterval: 480 + }); this._token = token; this.commandsDir = commandsDir;