Include image & video with embeds
This commit is contained in:
@@ -384,6 +384,9 @@ async function messageToEvent(message, guild, options = {}, di) {
|
|||||||
let title = makeUrlTitle(embed.title, embed.url)
|
let title = makeUrlTitle(embed.title, embed.url)
|
||||||
if (title) repParagraphs.push(title)
|
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)
|
if (embed.description) repParagraphs.push(embed.description)
|
||||||
for (const field of embed.fields || []) {
|
for (const field of embed.fields || []) {
|
||||||
repParagraphs.push(`**${field.name}**\n${field.value}`)
|
repParagraphs.push(`**${field.name}**\n${field.value}`)
|
||||||
|
Reference in New Issue
Block a user