From 6b8154ba82c8089bcb47e2d3b6fea66353ba27bc Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 10 Jul 2022 17:20:37 -0400 Subject: Fixed an issue where it doesn't shuffle properly --- commands/status.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'commands') diff --git a/commands/status.js b/commands/status.js index e135113..d3d70a6 100644 --- a/commands/status.js +++ b/commands/status.js @@ -34,6 +34,10 @@ export default { let audioName = audioArray[audioID]; audioName = audioName.split('.').slice(0, -1).join('.'); + if (audioName == null) { + audioName = 'Finish'; + } + const controlEmbed = new MessageEmbed() .setAuthor({ name: `${bot.user.username} Status`, iconURL: bot.user.avatarURL() }) .addField('State', playerState) -- cgit v1.2.3