aboutsummaryrefslogtreecommitdiff
path: root/commands/play.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2022-04-03 16:43:47 -0400
committerAndrew Lee <alee14498@protonmail.com>2022-04-03 16:43:47 -0400
commita555449001cbe87503e5ffe9b311aceb59592c63 (patch)
treebf2920c4532ca65b5837d459e46bbe53c893de76 /commands/play.js
parentdaf3c1735513bb252614a0047116088e242f7984 (diff)
downloadDLAP-a555449001cbe87503e5ffe9b311aceb59592c63.tar.gz
DLAP-a555449001cbe87503e5ffe9b311aceb59592c63.tar.bz2
DLAP-a555449001cbe87503e5ffe9b311aceb59592c63.zip
Audio states on control; Control can be ran once; Ping update, etc
Diffstat (limited to 'commands/play.js')
-rw-r--r--commands/play.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/commands/play.js b/commands/play.js
index f53ac21..cc88bb3 100644
--- a/commands/play.js
+++ b/commands/play.js
@@ -31,13 +31,12 @@ export default {
.setDescription('Plays the audio by number')
.addIntegerOption(option =>
option.setName('int')
- .setDescription('Input a number for the selection for the audio file.')
- .setRequired(false),
+ .setDescription('Input a number for the selection for the audio file.'),
),
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 });
integer = interaction.options.getInteger('int');
await inputAudio(bot, integer);
- return await interaction.reply({ content: `Now playing: ${audio}`, ephemeral: true});
+ return await interaction.reply({ content: `Now playing: ${audio}`, ephemeral: true });
},
}; \ No newline at end of file