interface Embed {
    author?: {
        iconURL?: string;
        name?: string;
        url?: string;
    };
    color?: number;
    description?: string;
    fields?: {
        inline: boolean;
        name: string;
        value: string;
    }[];
    footer?: {
        iconURL?: string;
        text: string;
    };
    image?: {
        url?: string;
    };
    thumbnail?: {
        url?: string;
    };
    timestamp?: string;
    title?: string;
    url?: string;
}

Properties

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

A small section above the title of the embed

Type declaration

  • OptionaliconURL?: string

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

  • Optionalname?: string

    Name of the author (max length 256)

  • Optionalurl?: 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?: {
    inline: boolean;
    name: string;
    value: string;
}[]

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

Type declaration

  • inline: boolean

    If the field should wrap or not

    false
    
  • name: string

    Format: webhook-markdown

    Header of the table-like cell

  • value: string

    Format: webhook-markdown

    Subtext of the table-like cell

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

Type declaration

  • OptionaliconURL?: string

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

  • text: string

    Text of the footer (max length 2048)

image?: {
    url?: string;
}

Type declaration

  • Optionalurl?: string

    URL of the image (max length 1024)

thumbnail?: {
    url?: string;
}

An image to the right of the embed's content

Type declaration

  • Optionalurl?: 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))