From 8e83a2ded5748ae47cee51d9d517e2f63ae980f1 Mon Sep 17 00:00:00 2001 From: Andromeda <46562212+DevAndromeda@users.noreply.github.com> Date: Sun, 15 Aug 2021 19:09:28 +0545 Subject: [PATCH 1/2] docs: fix example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5ce12ee..b8d3869 100644 --- a/README.md +++ b/README.md @@ -122,7 +122,7 @@ client.on("interactionCreate", async (interaction) => { await interaction.deferReply(); const track = await player.search(query, { requestedBy: message.author - }).then(x => x.tracks[1]); + }).then(x => x.tracks[0]); if (!track) return await interaction.followUp({ content: `❌ | Track **${query}** not found!` }); queue.play(track); From 5e84bd172367081ed4eee46442cfca2e31c4fed8 Mon Sep 17 00:00:00 2001 From: Yan Date: Mon, 16 Aug 2021 18:18:10 +0200 Subject: [PATCH 2/2] :sparkles: update for interaction. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b8d3869..6e8df3b 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,7 @@ client.on("interactionCreate", async (interaction) => { await interaction.deferReply(); const track = await player.search(query, { - requestedBy: message.author + requestedBy: interaction.user }).then(x => x.tracks[0]); if (!track) return await interaction.followUp({ content: `❌ | Track **${query}** not found!` });