This commit is contained in:
Christopher Cookman 2023-07-13 11:12:28 -06:00
parent 191e9bf04e
commit bf55091c9a
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -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