Skip to content

Commit

Permalink
FIX: message is not defined here, have to use interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
Klairm authored Aug 14, 2021
1 parent db3198c commit 614642c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 614642c

Please sign in to comment.