From b29f2e90153c5c85e194684de11b4877dc8b1866 Mon Sep 17 00:00:00 2001 From: Fyphen Date: Sun, 12 May 2024 23:49:30 +0000 Subject: [PATCH] chore: Add autocomplete option to play command --- commands/music/play.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/commands/music/play.js b/commands/music/play.js index 5a1be64..40d5e95 100644 --- a/commands/music/play.js +++ b/commands/music/play.js @@ -16,7 +16,14 @@ const { module.exports = { data: new SlashCommandBuilder() .setName('play') - .setDescription('Play music from a URL or search query'), + .setDescription('Play music from a URL or search query') + .addStringOption((option) => + option + .setName('query') + .setDescription('The URL or search query') + .setAutocomplete(true) + .setRequired(false) + ), async execute(interaction) { await interaction.deferReply(); if (!interaction.member.voice.channelId) {