From cf8e554bd8e9388b13d5e8dfc7b87c178ae8e744 Mon Sep 17 00:00:00 2001 From: rajamoulimallareddy Date: Wed, 6 Oct 2021 14:43:23 +0530 Subject: [PATCH] fix --- commands/Volume.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/Volume.js b/commands/Volume.js index e20bc18..06c70e9 100644 --- a/commands/Volume.js +++ b/commands/Volume.js @@ -20,7 +20,7 @@ module.exports = { if (isNaN(newVolume)) { message.reply({ embeds: [client.util.embed().setDescription(`Current volume: \`${MusicDispatcher.player.filters.volume * 100}\``)], allowedMentions: { repliedUser: false } }); } else { - if (newVolume < 0 || newVolume > 500 || !isNaN(newVolume)) + if (newVolume < 0 || newVolume > 500) return message.reply({ embeds: [client.util.embed().setDescription('You can only set the volume from 0-500.')], allowedMentions: { repliedUser: false } }); await MusicDispatcher.player.setVolume(newVolume / 100); message.reply({ embeds: [client.util.embed().setDescription(`The playback volume is now set to: \`${newVolume}\``)], allowedMentions: { repliedUser: false } });