fix: check for empty strings
Co-authored-by: Sefa Eyeoglu <contact@scrumplex.net> Signed-off-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
This commit is contained in:
parent
b11b564e2d
commit
e1f8443eba
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue