diff options
Diffstat (limited to 'commands/join.js')
| -rw-r--r-- | commands/join.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/commands/join.js b/commands/join.js index 45f513c..8778aae 100644 --- a/commands/join.js +++ b/commands/join.js @@ -21,12 +21,14 @@ import { SlashCommandBuilder } from '@discordjs/builders' import { voiceInit } from "../AudioBackend.js"; +import config from '../config.json' assert {type: 'json'} export default { data: new SlashCommandBuilder() .setName('join') .setDescription('Joins voice chat.'), async execute(interaction, bot) { + if (![config.botOwner].includes(interaction.user.id)) return await interaction.reply({ content: "You do not have permissions to execute this command.", ephemeral: true }); await interaction.reply('Joining voice channel') voiceInit(bot); }, |
