aboutsummaryrefslogtreecommitdiff
path: root/commands/join.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2022-07-06 05:56:09 -0400
committerAndrew Lee <alee14498@protonmail.com>2022-07-06 05:56:09 -0400
commitcd5be9de38b9be071e7e47d27061cf62031dff62 (patch)
tree818efc28811ac0d2226cb3d1c3b90b187c698a34 /commands/join.js
parent1e294d91c3eab7e65936010c8f0c81c4c4f73b96 (diff)
downloadDLAP-cd5be9de38b9be071e7e47d27061cf62031dff62.tar.gz
DLAP-cd5be9de38b9be071e7e47d27061cf62031dff62.tar.bz2
DLAP-cd5be9de38b9be071e7e47d27061cf62031dff62.zip
Cleaning up some stuff; Deprecating botOwner as Admin is required for commands
Diffstat (limited to 'commands/join.js')
-rw-r--r--commands/join.js7
1 files changed, 4 insertions, 3 deletions
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);