From d76632860450852cb4fc8562872da950fbeb14c6 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 20 Jan 2021 18:38:43 -0500 Subject: [PATCH] Fix --- commands/pokedex/pokedex-stats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/pokedex/pokedex-stats.js b/commands/pokedex/pokedex-stats.js index 3ded1f4d..6c972b1c 100644 --- a/commands/pokedex/pokedex-stats.js +++ b/commands/pokedex/pokedex-stats.js @@ -66,7 +66,7 @@ module.exports = class PokedexCommand extends Command { if (!data) return msg.say('Could not find any results.'); if (!data.gameDataCached) await data.fetchGameData(); const fetchGames = genGames.slice(data.missingno ? 0 : data.generation, data.missingno ? 1 : genGames.length); - if (!data.missingno) await data.fetchSmogonTiers(fetchGames); + if (!data.missingno) await data.fetchSmogonTiers(...fetchGames); const displayForms = data.varieties.filter(vrity => vrity.statsDiffer); const variety = displayForms.find(vrity => { if (!form || form === 'normal') return vrity.default;