$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

bot.Command({
name: "basicembed",
code: `
$description[Embed text hey!]
$color[ff0000]
`})

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)
bot.Command({
name: "basicembed",
code: `
$description[Embed text hey!]
$color[RED]
`})

Example 3: Randomizing colors for your embed.

bot.Command({
name: "basicembed",
code: `
$description[Embed text hey!]
$color[RANDOM]
`})

Example 4: Randomizing colors for your embed.

bot.Command({
name: "basicembed",
code: `
$description[Embed text hey!]
$color[]
`})
Last modified 1yr ago
Copy link