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.
setTitle
setTitle(title: string) — The main headline of the embed.Appears at the very top of the embed in large, bold text.
setDescription
setDescription(description: string) — The main body content.Appears just below the title. Supports Markdown (bold, italics, links, code blocks).
setURL
setURL(url: string) — A valid http/https link.Turns the Title into a clickable blue hyperlink.
setColor
setColor(color: ColorResolvable) — Hex code, integer, or string.0x0099FF, 'Red', '#FFFFFF'.The vertical colored strip on the left side of the embed.
setAuthor
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.Appears at the very top, above the Title, in smaller text.
setThumbnail
setThumbnail(url: string) — URL to an image file.A small, square image displayed in the top-right corner of the embed.
addFields
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.Displayed in blocks below the Description but above the Image. Great for key-value data.
setImage
setImage(url: string) — URL to a large image file.A large image displayed at the bottom of the embed content (full width).
setFooter
Accepts an object: { text, iconURL }
text: string — Footer text (max 2048 chars).iconURL?: string — Small circular image to the left of the text.Very small text at the absolute bottom of the card.
setTimestamp
setTimestamp(date?: Date | number).setTimestamp() to use the current time.Appears to the right of the Footer text. Discord automatically converts this to the user’s local timezone.