Interface MessageEmbedOptions

Hierarchy

  • MessageEmbedOptions

Properties

author?: {
    icon_url?: string;
    name?: string;
    url?: string;
}

A small section above the title of the embed

Type declaration

  • Optional icon_url?: string

    URL of a small image to display to the left of the author's name (max length 1024)

  • Optional name?: string

    Name of the author (max length 256)

  • Optional url?: string

    URL to linkify the author's name field (max length 1024; regex ^(?!attachment))

color?: number

Embed's color, decimal number (base 16),

To convert to HEX use: parseInt("HEX", 16), don't forget to remove the hashtag.

description?: string

Subtext of the embed (max length 2048)

fields?: APIEmbedField[]

Table-like cells to add to the embed (max items 25)

footer?: {
    icon_url?: string;
    text?: string;
}

A small section at the bottom of the embed

Type declaration

  • Optional icon_url?: string

    URL of a small image to put in the footer (max length 1024)

  • Optional text?: string

    Text of the footer (max length 2048)

image?: {
    url?: string;
}

The main picture to associate with the embed

Type declaration

  • Optional url?: string

    URL of the image (max length 1024)

thumbnail?: {
    url?: string;
}

An image to the right of the embed's content

Type declaration

  • Optional url?: string

    URL of the image (max length 1024)

timestamp?: string

A timestamp to put in the footer

title?: string

Main header of the embed (max length 256)

url?: string

URL to linkify the title field with (max length 1024; regex ^(?!attachment))