aboutsummaryrefslogtreecommitdiff
path: root/AudioBackend.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2022-11-29 13:14:17 -0500
committerAndrew Lee <alee14498@protonmail.com>2022-11-29 13:14:17 -0500
commit56573af6e6f5a839536483ea51ad1fc163f33458 (patch)
treee7ca71595cfa4ae623cb23285eca21ad49eb4377 /AudioBackend.js
parentfa84fcb7855e552218ac361ff5297c39418eb413 (diff)
downloadDLAP-56573af6e6f5a839536483ea51ad1fc163f33458.tar.gz
DLAP-56573af6e6f5a839536483ea51ad1fc163f33458.tar.bz2
DLAP-56573af6e6f5a839536483ea51ad1fc163f33458.zip
Total track fix
Diffstat (limited to 'AudioBackend.js')
-rw-r--r--AudioBackend.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/AudioBackend.js b/AudioBackend.js
index d92835a..ac26115 100644
--- a/AudioBackend.js
+++ b/AudioBackend.js
@@ -120,6 +120,7 @@ export async function nextAudio(bot) {
}
export async function previousAudio(bot, interaction) {
+ totalTrack++
if (currentTrack <= 0) {
return await interaction.reply({ content: 'You are at the beginning of the playlist, cannot go further than this', ephemeral: true });
} else {