From 949f06c9daa04a6758b06190c88698d6951c48db Mon Sep 17 00:00:00 2001 From: DevAndromeda <46562212+DevAndromeda@users.noreply.github.com> Date: Sat, 7 Aug 2021 20:48:34 +0545 Subject: [PATCH] docs: make example clear --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4daec0e..511d425 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ const { Player } = require("discord-player"); const player = new Player(client); // add the trackStart event so when a song will be played this message will be sent -player.on("trackStart", (queue, track) => queue.metadata.send(`🎶 | Now playing **${track.title}**!`)) +player.on("trackStart", (queue, track) => queue.metadata.channel.send(`🎶 | Now playing **${track.title}**!`)) client.once("ready", () => { console.log("I'm ready !"); @@ -106,7 +106,9 @@ client.on("interactionCreate", async (interaction) => { if (interaction.guild.me.voice.channelId && interaction.member.voice.channelId !== interaction.guild.me.voice.channelId) return await interaction.reply({ content: "You are not in my voice channel!", empheral: true }); const query = interaction.options.get("query").value; const queue = player.createQueue(message.guild, { - metadata: interaction.channel + metadata: { + channel: interaction.channel + } }); // verify vc connection