docs: fix example
docs: fix example
This commit is contained in:
commit
80677a6655
1 changed files with 2 additions and 2 deletions
|
@ -121,8 +121,8 @@ client.on("interactionCreate", async (interaction) => {
|
|||
|
||||
await interaction.deferReply();
|
||||
const track = await player.search(query, {
|
||||
requestedBy: message.author
|
||||
}).then(x => x.tracks[1]);
|
||||
requestedBy: interaction.user
|
||||
}).then(x => x.tracks[0]);
|
||||
if (!track) return await interaction.followUp({ content: `❌ | Track **${query}** not found!` });
|
||||
|
||||
queue.play(track);
|
||||
|
|
Loading…
Reference in a new issue