Browse Source

Update d.js message caching settings

shorten
benji7425 3 years ago
parent
commit
4afadaaa26
  1. 6
      discord-bot-core/Client.js

6
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;

Loading…
Cancel
Save