From e1f8443eba6b74853e51093b57aea07df7520f77 Mon Sep 17 00:00:00 2001 From: Ryan Cao <70191398+ryanccn@users.noreply.github.com> Date: Wed, 24 May 2023 17:17:15 +0800 Subject: [PATCH] fix: check for empty strings Co-authored-by: Sefa Eyeoglu Signed-off-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com> --- src/commands/say.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/say.ts b/src/commands/say.ts index 96e0979..fd3af32 100644 --- a/src/commands/say.ts +++ b/src/commands/say.ts @@ -14,7 +14,7 @@ export const sayCommand = async ( const message = await interaction.channel.send(content); await interaction.editReply('I said what you said!'); - if (typeof process.env.SAY_LOGS_CHANNEL === 'string') { + if (process.env.SAY_LOGS_CHANNEL) { const logsChannel = await interaction.guild.channels.fetch( process.env.SAY_LOGS_CHANNEL );