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/play.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'commands/play.js') diff --git a/commands/play.js b/commands/play.js index 2a5a385..2785288 100644 --- a/commands/play.js +++ b/commands/play.js @@ -21,18 +21,19 @@ import { SlashCommandBuilder } from '@discordjs/builders' import { isAudioStatePaused, inputAudio, audio, audioState, player } from '../AudioBackend.js' -import config from '../config.json' assert {type: 'json'} +import { PermissionFlagsBits } from "discord-api-types/v10" export let integer; export default { data: new SlashCommandBuilder() .setName('play') - .setDescription('Plays the player') + .setDescription('Resumes music') .addIntegerOption(option => option.setName('int') .setDescription('Input a number for the selection for the audio file.'), - ), + ) + .setDefaultMemberPermissions(PermissionFlagsBits.Administrator), async execute(interaction, bot) { integer = interaction.options.getInteger('int'); -- cgit v1.2.3