docs: fix example

docs: fix example
This commit is contained in:
Andromeda 2021-08-16 22:15:44 +05:45 committed by GitHub
commit 80677a6655
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -121,8 +121,8 @@ client.on("interactionCreate", async (interaction) => {
await interaction.deferReply(); await interaction.deferReply();
const track = await player.search(query, { const track = await player.search(query, {
requestedBy: message.author requestedBy: interaction.user
}).then(x => x.tracks[1]); }).then(x => x.tracks[0]);
if (!track) return await interaction.followUp({ content: `❌ | Track **${query}** not found!` }); if (!track) return await interaction.followUp({ content: `❌ | Track **${query}** not found!` });
queue.play(track); queue.play(track);