This commit is contained in:
Dragon Fire
2021-01-22 18:29:37 -05:00
parent c23af2cb4b
commit 9d7474b295
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ module.exports = class PokedexMoveCommand extends Command {
.addField(' Power', data.power, true)
.addField(' PP', data.pp, true)
.addField(' Type', data.type, true)
.addField(' Contest Type', data.contestType, true)
.addField(' Contest Type', data.contestType || 'N/A', true)
.addField(' Class', data.class, true);
return msg.embed(embed);
} catch (err) {
+1 -1
View File
@@ -14,7 +14,7 @@ module.exports = class Move {
this.power = data.power;
this.pp = data.pp;
this.type = firstUpperCase(data.type.name);
this.contestType = firstUpperCase(data.contest_type.name);
this.contestType = data.contest_type ? firstUpperCase(data.contest_type.name) : null;
this.class = firstUpperCase(data.damage_class.name);
}