FIX: message is not defined here, have to use interaction
This commit is contained in:
parent
db3198c797
commit
614642c99d
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ client.on("interactionCreate", async (interaction) => {
|
|||
if (!interaction.member.voice.channelId) return await interaction.reply({ content: "You are not in a voice channel!", empheral: true });
|
||||
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, {
|
||||
const queue = player.createQueue(interaction.guild, {
|
||||
metadata: {
|
||||
channel: interaction.channel
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue