Skip to content

Embed Builder Methods

setTitle

Parameters
  • setTitle(title: string) — The main headline of the embed.
  • Limit: Max 256 characters.
Visual Location

Appears at the very top of the embed in large, bold text.

setDescription

Parameters
  • setDescription(description: string) — The main body content.
  • Limit: Max 4096 characters.
Visual Location

Appears just below the title. Supports Markdown (bold, italics, links, code blocks).

setURL

Parameters
  • setURL(url: string) — A valid http/https link.
Visual Location

Turns the Title into a clickable blue hyperlink.

setColor

Parameters
  • setColor(color: ColorResolvable) — Hex code, integer, or string.
  • Example: 0x0099FF, 'Red', '#FFFFFF'.
Visual Location

The vertical colored strip on the left side of the embed.

setAuthor

Parameters

Accepts an object: { name, iconURL, url }

  • name: string — The name of the author (max 256 chars).
  • iconURL?: string — Small circular image to the left of the name.
  • url?: string — Makes the author name clickable.
Visual Location

Appears at the very top, above the Title, in smaller text.

setThumbnail

Parameters
  • setThumbnail(url: string) — URL to an image file.
Visual Location

A small, square image displayed in the top-right corner of the embed.

addFields

Parameters

Accepts a comma-separated list or array of objects:

  • name: string — The field title (max 256 chars).
  • value: string — The field text (max 1024 chars).
  • inline?: boolean — If true, fields will stack side-by-side.
Visual Location

Displayed in blocks below the Description but above the Image. Great for key-value data.

setImage

Parameters
  • setImage(url: string) — URL to a large image file.
Visual Location

A large image displayed at the bottom of the embed content (full width).

setFooter

Parameters

Accepts an object: { text, iconURL }

  • text: string — Footer text (max 2048 chars).
  • iconURL?: string — Small circular image to the left of the text.
Visual Location

Very small text at the absolute bottom of the card.

setTimestamp

Parameters
  • setTimestamp(date?: Date | number)
  • Leave empty .setTimestamp() to use the current time.
Visual Location

Appears to the right of the Footer text. Discord automatically converts this to the user’s local timezone.