aboutsummaryrefslogtreecommitdiff
path: root/commands/play.js
diff options
context:
space:
mode:
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