mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 06:10:49 +02:00
Fix
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user