mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 14:19:56 +02:00
Fix
This commit is contained in:
@@ -33,7 +33,7 @@ module.exports = class PokedexCommand extends Command {
|
|||||||
.get(`http://pokeapi.co/api/v2/pokemon/${pokemon}`);
|
.get(`http://pokeapi.co/api/v2/pokemon/${pokemon}`);
|
||||||
const data = response.body;
|
const data = response.body;
|
||||||
const entry = pokedex.entry[pokemon] || 'Not Yet Implemented';
|
const entry = pokedex.entry[pokemon] || 'Not Yet Implemented';
|
||||||
const indexZero = '000'.slice(data.id.length);
|
const indexZero = '000'.slice(data.id.toString().length);
|
||||||
const type1 = data.types[1] ? data.types[1].type.name : '-';
|
const type1 = data.types[1] ? data.types[1].type.name : '-';
|
||||||
const type2 = data.types[0] ? data.types[0].type.name : '-';
|
const type2 = data.types[0] ? data.types[0].type.name : '-';
|
||||||
const embed = new RichEmbed()
|
const embed = new RichEmbed()
|
||||||
|
|||||||
Reference in New Issue
Block a user