cooldown changes
This commit is contained in:
parent
3441550f23
commit
0588d24882
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ class CommandHandler {
|
||||||
|
|
||||||
this.client.commands.set(props.help.name, props);
|
this.client.commands.set(props.help.name, props);
|
||||||
|
|
||||||
this.client.cooldown.set(props.help.name, new Map());
|
this.client.cooldowns.set(props.help.name, new Map());
|
||||||
|
|
||||||
props.conf.aliases.forEach(alias => {
|
props.conf.aliases.forEach(alias => {
|
||||||
this.client.aliases.set(alias, props.help.name);
|
this.client.aliases.set(alias, props.help.name);
|
||||||
|
@ -29,7 +29,7 @@ class CommandHandler {
|
||||||
|
|
||||||
return;
|
return;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return `Failed to load command ${name}: ${err}`;
|
return `Failed to load command ${name}: ${err.stack}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue