diff --git a/README.md b/README.md index 5ce12ee..6e8df3b 100644 --- a/README.md +++ b/README.md @@ -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);