diff --git a/commands/edit-image/trainer-card.js b/commands/edit-image/trainer-card.js index 2e41bdf7..ce138245 100644 --- a/commands/edit-image/trainer-card.js +++ b/commands/edit-image/trainer-card.js @@ -91,7 +91,7 @@ module.exports = class TrainerCardCommand extends Command { try { const pokemonUsed = []; for (const pkmn of pokemon) { - const id = await this.fetchPokemonID(pkmn.id); + const id = await this.fetchPokemonID(pkmn); pokemonUsed.push(id); } const card = await this.createCard(style, name, character, badgeChoice, pokemonUsed);