From 5c2785555936f2b57faf6a2455ba0cd5f2750ec7 Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Wed, 5 Jul 2023 12:41:27 +0200 Subject: [PATCH] Fix what param is retrieved from command --- commands/play.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/play.js b/commands/play.js index a24e068..33f1a08 100644 --- a/commands/play.js +++ b/commands/play.js @@ -10,14 +10,14 @@ module.exports = { .setDescription('Search terms or URL.') .setRequired(true) ), - run: async ({ client, interaction, player }) => { + run: async ({ interaction, player }) => { if (!interaction.member.voice.channel) { return interaction.editReply( 'You need to be in a voice channel to use this command.' ); } - let query = interaction.options.getString('track'); + let query = interaction.options.getString('query'); try { const { track } = await player.play(