diff --git a/index.js b/index.js index f121ae1..efb7b4f 100644 --- a/index.js +++ b/index.js @@ -63,7 +63,7 @@ client.on("ready", () => { client.on('interactionCreate', async (interaction) => { if (!interaction.isCommand()) return; - if (!config.discord.authorized_channels.includes(interaction.channelId) && !config.discord.authorized_channels.includes(interaction.channel.parentId)) return; // Only allow messages in the authorized channels + if (!config.discord.authorized_channels.includes(interaction.channelId) && !config.discord.authorized_channels.includes(interaction.channel.parentId)) return interaction.reply({ephemeral: true, content: lang.noauth}); // Only allow messages in the authorized channels switch (interaction.commandName) { case "reset": // Remove the session diff --git a/lang.json b/lang.json index 84f9692..c013335 100644 --- a/lang.json +++ b/lang.json @@ -18,5 +18,6 @@ "color": 16711680 }] }, - "busy": "The bot is busy right now. Please try again later." + "busy": "The bot is busy right now. Please try again later.", + "noauth": "This is not an authorized channel." } \ No newline at end of file