Bug fixes & update (v4.0.2)

This commit is contained in:
Zerio
2020-12-25 14:01:40 +01:00
parent 6f6c9df24c
commit 3221ffece1
5 changed files with 6 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ module.exports = {
if (!client.player.getQueue(message)) return message.channel.send(`${client.emotes.error} - No music currently playing !`);
if (!args[0] || isNaN(args[0])) return message.channel.send(`${client.emotes.error} - Please enter a valid number !`);
if (!args[0] || isNaN(args[0]) || args[0] === 'Infinity') return message.channel.send(`${client.emotes.error} - Please enter a valid number !`);
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) !`);