From cd5be9de38b9be071e7e47d27061cf62031dff62 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Wed, 6 Jul 2022 05:56:09 -0400 Subject: Cleaning up some stuff; Deprecating botOwner as Admin is required for commands --- commands/join.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'commands/join.js') diff --git a/commands/join.js b/commands/join.js index 8ede21a..42f3e1c 100644 --- a/commands/join.js +++ b/commands/join.js @@ -20,13 +20,14 @@ ***************************************************************************/ import { SlashCommandBuilder } from '@discordjs/builders' -import { voiceInit } from '../AudioBackend.js'; -import config from '../config.json' assert {type: 'json'} +import { voiceInit } from '../AudioBackend.js' +import { PermissionFlagsBits } from 'discord-api-types/v10' export default { data: new SlashCommandBuilder() .setName('join') - .setDescription('Joins voice chat.'), + .setDescription('Joins voice chat') + .setDefaultMemberPermissions(PermissionFlagsBits.Administrator), async execute(interaction, bot) { await interaction.reply({ content: 'Joining voice channel', ephemeral: true }) return await voiceInit(bot); -- cgit v1.2.3