From 90416d7f9077a4ab7cbc329926357c623a4baf2e Mon Sep 17 00:00:00 2001 From: Androz Date: Fri, 20 Aug 2021 18:29:30 +0200 Subject: [PATCH] fix(example): use paused as variable name --- example/music-bot/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/example/music-bot/index.js b/example/music-bot/index.js index 360c7e1..3db8c3f 100644 --- a/example/music-bot/index.js +++ b/example/music-bot/index.js @@ -258,14 +258,14 @@ client.on("interactionCreate", async (interaction) => { await interaction.deferReply(); const queue = player.getQueue(interaction.guildId); if (!queue || !queue.playing) return void interaction.followUp({ content: "❌ | No music is being played!" }); - const success = queue.setPaused(true); - return void interaction.followUp({ content: success ? "⏸ | Paused!" : "❌ | Something went wrong!" }); + const paused = queue.setPaused(true); + return void interaction.followUp({ content: paused ? "⏸ | Paused!" : "❌ | Something went wrong!" }); } else if (interaction.commandName === "resume") { await interaction.deferReply(); const queue = player.getQueue(interaction.guildId); if (!queue || !queue.playing) return void interaction.followUp({ content: "❌ | No music is being played!" }); - const success = queue.setPaused(false); - return void interaction.followUp({ content: success ? "❌ | Something went wrong!" : "▶ | Resumed!" }); + const paused = queue.setPaused(false); + return void interaction.followUp({ content: !paused ? "❌ | Something went wrong!" : "▶ | Resumed!" }); } else if (interaction.commandName === "stop") { await interaction.deferReply(); const queue = player.getQueue(interaction.guildId);