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 } });