diff --git a/bot/commands/Pokemon/ability.js b/bot/commands/Pokemon/ability.js index 48882e8..35ce04c 100644 --- a/bot/commands/Pokemon/ability.js +++ b/bot/commands/Pokemon/ability.js @@ -38,6 +38,7 @@ module.exports = class { getAbilityDetailsByFuzzy(ability: "${query}") { name desc + shortDesc bulbapediaPage serebiiPage smogonPage @@ -62,14 +63,15 @@ module.exports = class { } const ability = json.data.getAbilityDetailsByFuzzy; - if (!ability.desc) return message.channel.createMessage( - `${client.constants.emojis.botError} I'm missing data for this ability so I can't show it to you, sorry! ;w;` - ) const embed = new Embed() .setColour(client.functions.displayHexColour(message.channel.guild, client.user.id)) - .setTitle(ability.name.toProperCase()) - .setDescription(ability.desc) - .addField('External Resources:', `[Bulbapedia](${ability.bulbapediaPage}) | [Serebii](${ability.serebiiPage}) | [Smogon](${ability.smogonPage})`); + .setTitle(ability.name.toProperCase()); + if (ability.desc) { + embed.setDescription(ability.desc); + } else { + embed.setDescription(ability.shortDesc); + } + embed.addField('External Resources:', `[Bulbapedia](${ability.bulbapediaPage}) | [Serebii](${ability.serebiiPage}) | [Smogon](${ability.smogonPage})`); message.channel.createMessage({ embed: embed }); }) .catch(err => console.log(err)); diff --git a/bot/commands/Pokemon/pokemon.js b/bot/commands/Pokemon/pokemon.js index 9098386..ea902b0 100644 --- a/bot/commands/Pokemon/pokemon.js +++ b/bot/commands/Pokemon/pokemon.js @@ -16,7 +16,7 @@ module.exports = class { description: 'Get useful data on any pokemon you ask me to!', arguments: '', details: '', - examples: '`pokemon mudkip`\n`pokemon giratina-origin`' + examples: '`pokemon mudkip`\n`pokemon alolan ninetales`' }; }