From 0894c0608d29f731803e3e13d9f893654b56730f Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Sun, 14 Aug 2022 20:26:46 -0400 Subject: allow hl show when a user has no words highlighted but still have blocked users or channels --- src/commands/utilities/highlight-show.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/commands') 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') -- cgit