add commands to cooldown collection

This commit is contained in:
Emily 2020-10-10 13:30:07 +11:00
parent d214791a1f
commit f6a1a854ca

View file

@ -21,6 +21,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);
});