This commit is contained in:
Dragon Fire
2021-02-11 14:26:50 -05:00
parent 742bf51ddf
commit b735c59872
+1 -2
View File
@@ -1,6 +1,5 @@
const Command = require('../../structures/Command');
const request = require('node-superfetch');
const cheerio = require('cheerio');
const { stripIndents } = require('common-tags');
const { list } = require('../../util/Util');
const { styles, characters, badges } = require('../../assets/json/trainer-card');
@@ -91,7 +90,7 @@ module.exports = class TrainerCardCommand extends Command {
try {
const pokemonUsed = [];
for (const pkmn of pokemon) {
const id = await pokemon.fetchCardID();
const id = await pkmn.fetchCardID();
pokemonUsed.push(id);
}
const card = await this.createCard(style, name, character, badgeChoice, pokemonUsed);