mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 21:40:49 +02:00
Clean up APOD embed
This commit is contained in:
@@ -24,6 +24,12 @@ module.exports = class ApodCommand extends Command {
|
|||||||
const embed = new MessageEmbed()
|
const embed = new MessageEmbed()
|
||||||
.setTitle(body.title)
|
.setTitle(body.title)
|
||||||
.setDescription(shorten(body.explanation))
|
.setDescription(shorten(body.explanation))
|
||||||
|
.setColor(0x2E528E)
|
||||||
|
.setAuthor(
|
||||||
|
'Astronomy Picture of the Day',
|
||||||
|
'https://i.imgur.com/AAYoZrq.jpg',
|
||||||
|
'https://apod.nasa.gov/apod/astropix.html'
|
||||||
|
)
|
||||||
.setImage(body.media_type === 'image' ? body.url : null)
|
.setImage(body.media_type === 'image' ? body.url : null)
|
||||||
.setURL(body.url)
|
.setURL(body.url)
|
||||||
.setFooter(`Image Credits: ${body.copyright || 'Public Domain'}`)
|
.setFooter(`Image Credits: ${body.copyright || 'Public Domain'}`)
|
||||||
|
|||||||
Reference in New Issue
Block a user