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