1
0
Fork 0

Include image & video with embeds

This commit is contained in:
Cadence Ember 2023-10-02 22:42:32 +13:00
parent 944fe2dc43
commit cbc0443837

View file

@ -384,6 +384,9 @@ async function messageToEvent(message, guild, options = {}, di) {
let title = makeUrlTitle(embed.title, embed.url)
if (title) repParagraphs.push(title)
if (embed.image?.url) repParagraphs.push(`📸 ${embed.image.url}`)
if (embed.video?.url) repParagraphs.push(`🎞️ ${embed.video.url}`)
if (embed.description) repParagraphs.push(embed.description)
for (const field of embed.fields || []) {
repParagraphs.push(`**${field.name}**\n${field.value}`)