docs: make example clear
This commit is contained in:
parent
59b1c60440
commit
949f06c9da
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue