Fix what param is retrieved from command

This commit is contained in:
Marius Begby committed 2023-07-05 12:41:27 +02:00
1 parent 20cbce771c
commit 5c27855559
1 file changed
+2 -2
+2 -2
View File
@@ -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(