This commit is contained in:
Dragon Fire
2020-03-25 20:49:36 -04:00
parent cf8b01cf76
commit c36056d114
+1 -1
View File
@@ -43,7 +43,7 @@ module.exports = class PokedexCommand extends Command {
const data = await this.client.pokemon.fetch(pokemon);
if (!data) return msg.say('Could not find any results.');
if (!data.typesCached) await data.fetchTypes();
if (!data.chain.data) await data.fetchChain();
if (!data.chain.data.length) await data.fetchChain();
const typesShown = data.varieties.filter(variety => variety.display);
const embed = new MessageEmbed()
.setColor(0xED1C24)