From 08e6a4f7d23975eff55d798b0fc3b5590785e72c Mon Sep 17 00:00:00 2001 From: Chen Asraf Date: Tue, 6 Aug 2024 00:04:13 +0300 Subject: [PATCH] fix: whitelist chat command --- src/commands/chat.command.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/commands/chat.command.ts b/src/commands/chat.command.ts index a7fd962..cb72638 100644 --- a/src/commands/chat.command.ts +++ b/src/commands/chat.command.ts @@ -10,7 +10,6 @@ import { } from '@/core/megahal' import { CHAT_TRIGGERS, DEFAULT_COMMAND_PREFIX } from '@/env' import { isWhitelisted, manipulateWhitelist } from '@/lib/blacklist' -import { formatBytes } from '@/utils/string_utils' export default command({ command: 'chat', @@ -40,7 +39,7 @@ export default command({ const action = args[1]?.trim().toLowerCase() as 'add' | 'remove' | undefined const type = args[2]?.trim().toLowerCase() as 'guild' | 'channel' | undefined message.reply( - await manipulateWhitelist('commands', action, type, message.guild!, message.channel), + await manipulateWhitelist('chat', action, type, message.guild!, message.channel), ) break }