$getFromEmbed
A `Compact Function` that extracts data from an embedded message. Has `14` options to choose from.

FUNCTION USAGE

    $getFromEmbed[channelID;messageID;option]

Property:

    channelID - Channel ID of where the embed is.
    messageID - Message ID of the embedded message in the defined channel.
    option - Part of the embed you are extracting.

Options (14):

    1.
    author
    2.
    authoricon
    3.
    title
    4.
    description
    5.
    footer
    6.
    footericon
    7.
    color
    8.
    thumbnail
    9.
    image
    10.
    descriptionlength
    11.
    titlelength
    12.
    footerlength
    13.
    totallength
    14.
    type
Bot must be in the guild to read that data!
Option
Details
author
Returns the text in the author field of an embedded message.
authoricon
Returns the author icon in an embedded message.
title
Returns the text in the title field of an embedded message.
description
Returns the text in the description field of an embedded message.
footer
Returns the text in the footer field of an embedded message.
footericon
Returns the footer iconian embedded message.
color
Returns the color of an embedded message.
thumbnail
Returns the thumbnail url an embedded message.
image
Returns the image in an embedded message.
descriptionlength
Returns the length of the description in an embedded message.
titlelength
Returns the length of the title in an embedded message.
footerlength
Returns the length of the footer in an embedded message.
totallength
Returns the total length of the embedded message.
type
Returns the type of embedded message. Returns NoEmbed if the message is not embedded.
    rich - a rich embed
    image - an image embed
    video - a video embed
    gifv - a gifv embed
    article - an article embed
    link - a link embed

Example 1: When embed is from the current channel. Supply the messageID and then the embed type. In that order.

1
bot.Command({
2
name: "fromembed",
3
code: `
4
Content - $getFromEmbed[$channelID;$message[1];$messageSlice[>1]]
5
`
6
})
Copied!

Example 2: When embed is from a different channel. Supply the channelID, messageID and type. In that order.

1
bot.Command({
2
name: "fromembed",
3
code: `
4
Content - $getFromEmbed[$findChannel[$message[1]];$message[2];$messageSlice[>2]]
5
`
6
})
Copied!
Last modified 3mo ago
Copy link