optimized volume and earrape commands

This commit is contained in:
Hazem Krimi
2020-05-09 10:15:14 +01:00
parent f69addabcf
commit d2f1466e7e
2 changed files with 6 additions and 5 deletions
+3 -3
View File
@@ -11,14 +11,14 @@ module.exports = class Play extends Command {
guildOnly: true,
throttling: {
usages: 1,
duration: 5
duration: 3
},
args: [
{
key: 'query',
prompt: 'specify the volume (greater than 0)',
type: 'string',
validate: query => query.length > 0 && parseInt(query) > 0
validate: query => query.length > 0 && parseInt(query) >= 0 && parseInt(query) <= 200
}
],
});
@@ -41,7 +41,7 @@ module.exports = class Play extends Command {
}
} catch (err) {
console.error(err);
const embed = new MessageEmbed().setColor('#ff0000').setTitle(':x: Error occured, if you are my creator please fix me soon');
const embed = new MessageEmbed().setColor('#ff0000').setTitle(`:x: Error occured: ${err.message}`);
return message.say({ embed });
}
}