Skip to content

$cloneEmbed

$cloneEmbed will clone an embed.

Usage

$cloneEmbed[index;messageID;channelID?]

Parameters

FieldTypeDescriptionRequired
indexstringThe index of the embed which you want to clone.
1. all
2. number
true
messageIDnumberThe ID of the embed message that will be cloned.true
channelID?numberThe ID of the channel that you sent the embed message.false

Example(s)

This will clone the previous embed and edit the title after 30 seconds:

1
client.command({
2
name: "cloneEmbed",
3
code: `
4
$title[Bye!]
5
$cloneEmbed[all;$get[messageID];$channelID]
6
7
$wait[15s]
8
$let[messageID;$sendMessage[{newEmbed: {title:Hello!} {description:I'll edit this message in 15 seconds.}};true]]
9
`
10
});