aboutsummaryrefslogtreecommitdiff
path: root/commands/pause.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2022-12-04 01:55:58 -0500
committerAndrew Lee <alee14498@protonmail.com>2022-12-04 01:55:58 -0500
commitf91f277a30a081cde95805bf39adeb835be98c3f (patch)
tree86c3c8c1299dcf33a180c87c16e7d37bade0291f /commands/pause.js
parentc576ed4e454fe6b4974e7ad873670e3adc9d0a96 (diff)
downloadDLAP-f91f277a30a081cde95805bf39adeb835be98c3f.tar.gz
DLAP-f91f277a30a081cde95805bf39adeb835be98c3f.tar.bz2
DLAP-f91f277a30a081cde95805bf39adeb835be98c3f.zip
Added repeat toggle; Did some optiminizations to the code
Diffstat (limited to 'commands/pause.js')
-rw-r--r--commands/pause.js2
1 files changed, 1 insertions, 1 deletions
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 {