diff options
-rw-r--r-- | src/commands/admin/roleAll.ts | 1 | ||||
-rw-r--r-- | src/commands/moderation/modlog.ts | 4 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/commands/admin/roleAll.ts b/src/commands/admin/roleAll.ts index 54afc2a..dda536f 100644 --- a/src/commands/admin/roleAll.ts +++ b/src/commands/admin/roleAll.ts @@ -33,7 +33,6 @@ export default class RoleAllCommand extends BushCommand { match: 'flag', prompt: 'Would you like to also give roles to bots?', flag: '--bots', - default: false, slashType: ApplicationCommandOptionType.Boolean, optional: true } diff --git a/src/commands/moderation/modlog.ts b/src/commands/moderation/modlog.ts index a04be32..527ba36 100644 --- a/src/commands/moderation/modlog.ts +++ b/src/commands/moderation/modlog.ts @@ -42,7 +42,6 @@ export default class ModlogCommand extends BushCommand { prompt: 'Would you like to see hidden modlogs?', match: 'flag', flag: ['--hidden', '-h'], - default: false, optional: true, slashType: ApplicationCommandOptionType.Boolean } @@ -70,8 +69,7 @@ export default class ModlogCommand extends BushCommand { order: [['createdAt', 'ASC']] }); const niceLogs = logs - .filter((log) => !log.pseudo) - .filter((log) => !(log.hidden && hidden)) + .filter((log) => !log.pseudo && !(!hidden && log.hidden)) .map((log) => ModlogCommand.generateModlogInfo(log, false, false)); if (niceLogs.length < 1) return message.util.reply(`${emojis.error} **${foundUser.tag}** does not have any modlogs.`); const chunked: string[][] = chunk(niceLogs, 4); |