mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 06:28:53 +00:00
Fix what param is retrieved from command
This commit is contained in:
1 parent
20cbce771c
commit
5c27855559
1 file changed
+2
-2
+2
-2
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user