Add music starting error

This commit is contained in:
Androz2091
2021-02-26 15:01:28 +01:00
parent 467bc12ffb
commit 0d2f9cfd2f
7 changed files with 15 additions and 12 deletions

View File

@@ -15,8 +15,8 @@ module.exports = {
if (Math.round(parseInt(args[0])) < 1 || Math.round(parseInt(args[0])) > 100) return message.channel.send(`${client.emotes.error} - Please enter a valid number (between 1 and 100) !`);
client.player.setVolume(message, parseInt(args[0]));
const success = client.player.setVolume(message, parseInt(args[0]));
message.channel.send(`${client.emotes.success} - Volume set to **${parseInt(args[0])}%** !`);
if (success) message.channel.send(`${client.emotes.success} - Volume set to **${parseInt(args[0])}%** !`);
},
};