mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 14:20:51 +02:00
Fix
This commit is contained in:
@@ -31,15 +31,15 @@ module.exports = class PokedexCommand extends Command {
|
|||||||
const embed = new MessageEmbed()
|
const embed = new MessageEmbed()
|
||||||
.setColor(0xED1C24)
|
.setColor(0xED1C24)
|
||||||
.setAuthor(
|
.setAuthor(
|
||||||
`#${data.id} - ${data.name}`,
|
`#${data.displayID} - ${data.name}`,
|
||||||
`https://www.serebii.net/pokedex-sm/icon/${data.id}.png`,
|
`https://www.serebii.net/pokedex-sm/icon/${data.displayID}.png`,
|
||||||
`https://www.serebii.net/pokedex-sm/${data.id}.shtml`
|
`https://www.serebii.net/pokedex-sm/${data.displayID}.shtml`
|
||||||
)
|
)
|
||||||
.setDescription(stripIndents`
|
.setDescription(stripIndents`
|
||||||
**The ${data.genus}**
|
**The ${data.genus}**
|
||||||
${data.entries[Math.floor(Math.random() * data.entries.length)]}
|
${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);
|
return msg.embed(embed);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err.status === 404) return msg.say('Could not find any results.');
|
if (err.status === 404) return msg.say('Could not find any results.');
|
||||||
|
|||||||
Reference in New Issue
Block a user