add commands to cooldown collection
This commit is contained in:
parent
d214791a1f
commit
f6a1a854ca
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue