Jellyneo can have , in prices

This commit is contained in:
Daniel Odendahl Jr
2018-02-19 18:41:15 +00:00
parent 6a464198f9
commit c81b0a3bce
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -51,10 +51,10 @@ module.exports = class WhosThatPokemonCommand extends Command {
}
}
async fetchPokemon(pokemon, peek = false) {
async fetchPokemon(pokemon) {
if (this.cache.has(pokemon)) return this.cache.get(pokemon);
const { body } = await snekfetch.get(`https://pokeapi.co/api/v2/pokemon-species/${pokemon}/`);
if (!peek) this.cache.set(body.id, body);
this.cache.set(body.id, body);
return body;
}