rate limiter

This commit is contained in:
Erik 2020-06-19 16:37:25 +03:00
parent 93e6031c5b
commit f5aea60621

View File

@ -10,6 +10,7 @@ const Logger = require('./Logger.js');
const TransactionHandler = require('./TransactionHandler.js'); const TransactionHandler = require('./TransactionHandler.js');
const LocaleLoader = require('../../language/LocaleLoader.js'); const LocaleLoader = require('../../language/LocaleLoader.js');
const ModerationManager = require('../moderation/ModerationManager.js'); const ModerationManager = require('../moderation/ModerationManager.js');
const RateLimiter = require('./RateLimiter.js');
const { Guild, GuildMember, User, Message } = require('../../structure/extensions/'); //eslint-disable-line no-unused-vars const { Guild, GuildMember, User, Message } = require('../../structure/extensions/'); //eslint-disable-line no-unused-vars
const { Command, Observer, Inhibitor, Setting } = require('../../structure/interfaces/'); const { Command, Observer, Inhibitor, Setting } = require('../../structure/interfaces/');
@ -28,6 +29,7 @@ class DiscordClient extends Client {
this.logger = new Logger(this); this.logger = new Logger(this);
this.transactionHandler = new TransactionHandler(this); this.transactionHandler = new TransactionHandler(this);
this.localeLoader = new LocaleLoader(this); this.localeLoader = new LocaleLoader(this);
this.rateLimiter = new RateLimiter(this);
this.moderationManager = new ModerationManager(this); this.moderationManager = new ModerationManager(this);