From f91f277a30a081cde95805bf39adeb835be98c3f Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 4 Dec 2022 01:55:58 -0500 Subject: Added repeat toggle; Did some optiminizations to the code --- commands/pause.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/pause.js') diff --git a/commands/pause.js b/commands/pause.js index c467675..61b9e21 100644 --- a/commands/pause.js +++ b/commands/pause.js @@ -30,7 +30,7 @@ export default { .setDefaultMemberPermissions(PermissionFlagsBits.Administrator), async execute(interaction) { if (!interaction.member.voice.channel) return await interaction.reply({ content: 'You need to be in a voice channel to use this command.', ephemeral: true }); - if (isAudioStatePaused === false) { + if (!isAudioStatePaused) { toggleAudioState(); return await interaction.reply({ content: 'Pausing music', ephemeral: true }); } else { -- cgit v1.2.3