aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord-akairo/BushCommand.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/extensions/discord-akairo/BushCommand.ts')
-rw-r--r--src/lib/extensions/discord-akairo/BushCommand.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/extensions/discord-akairo/BushCommand.ts b/src/lib/extensions/discord-akairo/BushCommand.ts
index 7ecb679..3a2c619 100644
--- a/src/lib/extensions/discord-akairo/BushCommand.ts
+++ b/src/lib/extensions/discord-akairo/BushCommand.ts
@@ -63,7 +63,8 @@ export type BaseBushArgumentType =
| 'contentWithDuration'
| 'permission'
| 'snowflake'
- | 'discordEmoji';
+ | 'discordEmoji'
+ | 'roleWithDuration';
export type BushArgumentType = BaseBushArgumentType | RegExp;
@@ -180,8 +181,7 @@ export class BushCommand extends Command {
}
super(id, options);
this.options = options;
- // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
- this.hidden = options.hidden || false;
+ this.hidden = options.hidden ?? false;
this.restrictedChannels = options.restrictedChannels!;
this.restrictedGuilds = options.restrictedGuilds!;
this.completelyHide = options.completelyHide!;