$color
Set the color in an embed. You can keep the brackets empty or use `RANDOM` to get a random embed color.

FUNCTION USAGE

    $color[]
    $color[int]
    $color[hex]
    $color[RANDOM]

Properties:

int - The color name hex - The color in hex format RANDOM - Type RANDOM to make the bot choose random colors every command execution. You can also simply leave the brackets blank.

Example 1: Using hex colors

1
bot.Command({
2
name: "basicembed",
3
code: `
4
$description[Embed text hey!]
5
$color[ff0000]
6
`})
Copied!

Example 2: Using color names

Color names no longer have to be capitalized. (some color names may not be available and will return black instead)
1
bot.Command({
2
name: "basicembed",
3
code: `
4
$description[Embed text hey!]
5
$color[RED]
6
`})
Copied!

Example 3: Randomizing colors for your embed.

1
bot.Command({
2
name: "basicembed",
3
code: `
4
$description[Embed text hey!]
5
$color[RANDOM]
6
`})
Copied!

Example 4: Randomizing colors for your embed.

1
bot.Command({
2
name: "basicembed",
3
code: `
4
$description[Embed text hey!]
5
$color[]
6
`})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: