mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 14:38:49 +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.')
|
.setDescription('Search terms or URL.')
|
||||||
.setRequired(true)
|
.setRequired(true)
|
||||||
),
|
),
|
||||||
run: async ({ client, interaction, player }) => {
|
run: async ({ interaction, player }) => {
|
||||||
if (!interaction.member.voice.channel) {
|
if (!interaction.member.voice.channel) {
|
||||||
return interaction.editReply(
|
return interaction.editReply(
|
||||||
'You need to be in a voice channel to use this command.'
|
'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 {
|
try {
|
||||||
const { track } = await player.play(
|
const { track } = await player.play(
|
||||||
|
|||||||
Reference in new issue
Block a user