Fix Some Abilities and Moves having no description

This commit is contained in:
Dragon Fire
2021-01-23 13:27:18 -05:00
parent c3ca0455eb
commit 7c65435a4e
6 changed files with 14 additions and 5 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ module.exports = class PokedexAbilityCommand extends Command {
const embed = new MessageEmbed()
.setColor(0xED1C24)
.setTitle(data.name)
.setDescription(data.description);
.setDescription(data.description || 'No description available.');
return msg.embed(embed);
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);