cooldown changes

This commit is contained in:
Emily 2020-10-17 12:16:57 +11:00
parent 3441550f23
commit 0588d24882

View file

@ -21,7 +21,7 @@ class CommandHandler {
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 => {
this.client.aliases.set(alias, props.help.name);
@ -29,7 +29,7 @@ class CommandHandler {
return;
} catch (err) {
return `Failed to load command ${name}: ${err}`;
return `Failed to load command ${name}: ${err.stack}`;
}
}