diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-08-14 20:26:46 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-08-14 20:26:46 -0400 |
commit | 0894c0608d29f731803e3e13d9f893654b56730f (patch) | |
tree | 625658afb2688f83e60cfff2b0d2019affe47d9a /src/commands/utilities/highlight-show.ts | |
parent | ace921e14d7772b5bd5ef70dee99ee5a5599f118 (diff) | |
download | tanzanite-0894c0608d29f731803e3e13d9f893654b56730f.tar.gz tanzanite-0894c0608d29f731803e3e13d9f893654b56730f.tar.bz2 tanzanite-0894c0608d29f731803e3e13d9f893654b56730f.zip |
allow hl show when a user has no words highlighted but still have blocked users or channels
Diffstat (limited to 'src/commands/utilities/highlight-show.ts')
-rw-r--r-- | src/commands/utilities/highlight-show.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands/utilities/highlight-show.ts b/src/commands/utilities/highlight-show.ts index bed8f19..2ed5ed1 100644 --- a/src/commands/utilities/highlight-show.ts +++ b/src/commands/utilities/highlight-show.ts @@ -23,7 +23,8 @@ export default class HighlightShowCommand extends BushCommand { void this.client.highlightManager.syncCache(); - if (!highlight.words.length) return message.util.reply(`${emojis.error} You are not highlighting any words.`); + if (!highlight.words.length && highlight.blacklistedChannels.length < 1 && highlight.blacklistedUsers.length < 1) + return message.util.reply(`${emojis.error} You are not highlighting any words.`); const embed = new EmbedBuilder() .setTitle('Highlight List') |