From f5aea606210d146092bcebb3d849f8f86258a095 Mon Sep 17 00:00:00 2001 From: Erik Date: Fri, 19 Jun 2020 16:37:25 +0300 Subject: [PATCH] rate limiter --- structure/client/DiscordClient.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/structure/client/DiscordClient.js b/structure/client/DiscordClient.js index 1205928..15ae609 100644 --- a/structure/client/DiscordClient.js +++ b/structure/client/DiscordClient.js @@ -10,6 +10,7 @@ const Logger = require('./Logger.js'); const TransactionHandler = require('./TransactionHandler.js'); const LocaleLoader = require('../../language/LocaleLoader.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 { Command, Observer, Inhibitor, Setting } = require('../../structure/interfaces/'); @@ -28,6 +29,7 @@ class DiscordClient extends Client { this.logger = new Logger(this); this.transactionHandler = new TransactionHandler(this); this.localeLoader = new LocaleLoader(this); + this.rateLimiter = new RateLimiter(this); this.moderationManager = new ModerationManager(this);