Skip to content

$hasEmbeds

$hasEmbeds will check if there are embeds attached to the message.

Usage

$hasEmbeds[messageID;channelID]

Parameters

FieldTypeDescriptionRequired
messageIDnumberID of the message to check if it contains an embed.true
channelIDnumberID of the channel where the message is located in.true

Example(s)

This will return false as there are no embeds attached to your message:

1
client.command({
2
name: "hasEmbeds",
3
code: `
4
$hasEmbeds[$messageID;$channelID]
5
`
6
});