From bf55091c9adf9d063d900ca19d37d63234fe06eb Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Thu, 13 Jul 2023 11:12:28 -0600 Subject: [PATCH] whoops --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index eca786f..d26bb1d 100755 --- a/index.js +++ b/index.js @@ -88,7 +88,7 @@ client.on("ready", async () => { client.on('interactionCreate', async (interaction) => { if (!interaction.isCommand()) return; if (interaction.guild !== null) { - if ((!config.discord.authorized_channels[message.channelId] && !config.discord.authorized_channels[message.channel.parentId])) return interaction.reply({ + if ((!config.discord.authorized_channels[interaction.channelId] && !config.discord.authorized_channels[interaction.channel.parentId])) return interaction.reply({ ephemeral: true, content: lang.noauth }); // Only allow messages in the authorized channels