Type Alias Embed

Embed: {
    author?: EmbedAuthor;
    color?: number;
    description?: string;
    fields?: EmbedField[];
    footer?: EmbedFooter;
    image?: EmbedImage;
    thumbnail?: EmbedThumbnail;
    timestamp?: Timestamp;
    title?: string;
    url?: string;
}

Represents a Discord embed, used to format rich content.

the combined sum of characters in all title, description, field.name, field.value, footer.text, and author.name fields across all embeds attached to a message must not exceed 6000 characters

Type declaration

  • Optionalauthor?: EmbedAuthor
    • The author information displayed in the embed.
  • Optionalcolor?: number
    • The color of the embed, represented as an integer value.
  • Optionaldescription?: string
    • The description text of the embed, with a maximum length of 4096 characters.
  • Optionalfields?: EmbedField[]
    • An array of field objects, with a maximum length of 25.
  • Optionalfooter?: EmbedFooter
    • The footer information displayed in the embed.
  • Optionalimage?: EmbedImage
    • The image displayed in the embed.
  • Optionalthumbnail?: EmbedThumbnail
    • The thumbnail image displayed in the embed.
  • Optionaltimestamp?: Timestamp
    • The timestamp displayed in the embed, formatted in ISO 8601.
  • Optionaltitle?: string
    • The title of the embed, with a maximum length of 256 characters.
  • Optionalurl?: string
    • The URL of the embed.