Add URLs to all author embed fields

This commit is contained in:
Daniel Odendahl Jr
2018-02-26 00:09:56 +00:00
parent c9e0146459
commit 3a68ec1029
32 changed files with 39 additions and 36 deletions
+5 -2
View File
@@ -30,8 +30,11 @@ module.exports = class PokedexCommand extends Command {
const id = body.id.toString().padStart(3, '0');
const embed = new MessageEmbed()
.setColor(0xED1C24)
.setAuthor(`#${id} - ${filterPkmn(body.names).name}`, `https://www.serebii.net/pokedex-sm/icon/${id}.png`)
.setURL(`https://www.serebii.net/pokedex-sm/${id}.shtml`)
.setAuthor(
`#${id} - ${filterPkmn(body.names).name}`,
`https://www.serebii.net/pokedex-sm/icon/${id}.png`,
`https://www.serebii.net/pokedex-sm/${id}.shtml`
)
.setDescription(stripIndents`
**The ${filterPkmn(body.genera).genus}**
${filterPkmn(body.flavor_text_entries).flavor_text.replace(/\n|\f|\r/g, ' ')}