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