diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-08-21 14:55:50 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-08-21 14:55:50 -0400 |
commit | d01c331df293a585ef0f854dc24b04568df65b6e (patch) | |
tree | a72c2dac9a691ec8cebbb2767dff2f26cecc370b | |
parent | 093c5a4182eae14aab241f769c70c490460925f1 (diff) | |
download | tanzanite-d01c331df293a585ef0f854dc24b04568df65b6e.tar.gz tanzanite-d01c331df293a585ef0f854dc24b04568df65b6e.tar.bz2 tanzanite-d01c331df293a585ef0f854dc24b04568df65b6e.zip |
fix modlog hidden cases
-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); |