Skip to content

Commit

Permalink
chore: Add autocomplete option to play command
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyphen1223 committed May 12, 2024
1 parent 3c6e78d commit b29f2e9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion commands/music/play.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b29f2e9

Please sign in to comment.