From 6f0909b2c5803af7c84a704986c08412ff11d475 Mon Sep 17 00:00:00 2001 From: Connor Date: Mon, 16 Aug 2021 20:53:48 +0200 Subject: [PATCH] fixed typos in command example --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b8d3869..d6928df 100644 --- a/README.md +++ b/README.md @@ -102,8 +102,8 @@ client.on("interactionCreate", async (interaction) => { // /play Despacito // will play "Despacito" in the voice channel if (interaction.commandName === "play") { - 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 }); + if (!interaction.member.voice.channelId) return await interaction.reply({ content: "You are not in a voice channel!", ephemeral: 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!", ephemeral: true }); const query = interaction.options.get("query").value; const queue = player.createQueue(interaction.guild, { metadata: { @@ -116,7 +116,7 @@ client.on("interactionCreate", async (interaction) => { if (!queue.connection) await queue.connect(interaction.member.voice.channel); } catch { queue.destroy(); - return await interaction.reply({ content: "Could not join your voice channel!", empheral: true }); + return await interaction.reply({ content: "Could not join your voice channel!", ephemeral: true }); } await interaction.deferReply();