From ca477316f3ddfc0bd6faeea49c5ccf4e8bcdd0b6 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Mon, 9 Jul 2018 23:46:07 +0000 Subject: [PATCH] Fix --- commands/search/pokedex.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/search/pokedex.js b/commands/search/pokedex.js index c86f4272..7bec37d5 100644 --- a/commands/search/pokedex.js +++ b/commands/search/pokedex.js @@ -31,15 +31,15 @@ module.exports = class PokedexCommand extends Command { const embed = new MessageEmbed() .setColor(0xED1C24) .setAuthor( - `#${data.id} - ${data.name}`, - `https://www.serebii.net/pokedex-sm/icon/${data.id}.png`, - `https://www.serebii.net/pokedex-sm/${data.id}.shtml` + `#${data.displayID} - ${data.name}`, + `https://www.serebii.net/pokedex-sm/icon/${data.displayID}.png`, + `https://www.serebii.net/pokedex-sm/${data.displayID}.shtml` ) .setDescription(stripIndents` **The ${data.genus}** ${data.entries[Math.floor(Math.random() * data.entries.length)]} `) - .setThumbnail(`https://www.serebii.net/sunmoon/pokemon/${data.id}.png`); + .setThumbnail(`https://www.serebii.net/sunmoon/pokemon/${data.displayID}.png`); return msg.embed(embed); } catch (err) { if (err.status === 404) return msg.say('Could not find any results.');