mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +02:00
Fix Some Abilities and Moves having no description
This commit is contained in:
@@ -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!`);
|
||||
|
||||
@@ -39,7 +39,7 @@ module.exports = class PokedexMoveCommand extends Command {
|
||||
const embed = new MessageEmbed()
|
||||
.setColor(0xED1C24)
|
||||
.setTitle(data.name)
|
||||
.setDescription(data.cleanDescription)
|
||||
.setDescription(data.description ? data.cleanDescription : 'No description available.')
|
||||
.addField('❯ Accuracy', `${data.accuracy}%`, true)
|
||||
.addField('❯ Power', data.power, true)
|
||||
.addField('❯ PP', data.pp, true)
|
||||
|
||||
Reference in New Issue
Block a user