whoops
This commit is contained in:
parent
191e9bf04e
commit
bf55091c9a
2
index.js
2
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
|
||||
|
|
Loading…
Reference in a new issue