From f6a1a854cade185b4be5a8b2ef05b91b4eedd691 Mon Sep 17 00:00:00 2001 From: Emily J Date: Sat, 10 Oct 2020 13:30:07 +1100 Subject: [PATCH] add commands to cooldown collection --- bot/util/handlers.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bot/util/handlers.js b/bot/util/handlers.js index 5be6fc2..9fc14c1 100644 --- a/bot/util/handlers.js +++ b/bot/util/handlers.js @@ -20,6 +20,8 @@ class CommandHandler { } this.client.commands.set(props.help.name, props); + + this.client.cooldown.set(props.help.name, new Map()); props.conf.aliases.forEach(alias => { this.client.aliases.set(alias, props.help.name);