added changes to error handling

This commit is contained in:
Hazem Krimi
2020-05-09 10:17:02 +01:00
parent 2b4541d949
commit 42a64b9147
5 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ module.exports = class Play extends Command {
guildOnly: true,
throttling: {
usages: 1,
duration: 5
duration: 3
}
});
}
@@ -39,7 +39,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 });
}
}