From 856ecc1e06b04c7150f7077cbab7949312768f45 Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Wed, 5 Jul 2023 15:33:12 +0200 Subject: [PATCH] Comment --- commands/pause.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/pause.js b/commands/pause.js index 64acbfd..566e9e3 100644 --- a/commands/pause.js +++ b/commands/pause.js @@ -13,7 +13,6 @@ module.exports = { ); } - const player = useMainPlayer(); const queue = useQueue(interaction.guild.id); if (!queue) { @@ -22,6 +21,7 @@ module.exports = { ); } + // change paused state to opposite of current state queue.node.setPaused(!queue.node.isPaused()); if (queue.node.isPaused()) { await interaction.editReply({