docs: fix example

This commit is contained in:
Andromeda 2021-08-15 19:09:28 +05:45 committed by GitHub
parent e9d77db609
commit 8e83a2ded5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);