Skip to content

Commit

Permalink
fix(Command): properly set config.cooldown.duration
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirasaki committed Mar 14, 2023
1 parent c919ab8 commit 3bf277b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/Commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class CommandBase {
this.cooldown = 'cooldown' in config ? config.cooldown : {};
this.cooldown.type = config.cooldown && 'type' in config.cooldown ? config.cooldown.type : 'member';
this.cooldown.usages = config.cooldown && 'usages' in config.cooldown ? config.cooldown.usages : 1;
this.cooldown.duration = config.cooldown && 'duration' in config ? config.cooldown.duration : 2;
this.cooldown.duration = config.cooldown && 'duration' in config.cooldown ? config.cooldown.duration : 2;

/**
* @property {string} category This command's category
Expand Down

0 comments on commit 3bf277b

Please sign in to comment.