class EmbedBuilder

declare class EmbedBuilder

Represents a embed in a message (image/video preview, rich embed, etc.)

Constructors

constructor(
data?: APIEmbed
)

Constructs a new instance of the EmbedBuilder class

readonly
data : APIEmbed

addFields() : this

Adds fields to the embed (max 25)

setAuthor(
options: EmbedAuthorOptions | null
) : this

Sets the author of this embed

setColor(
color: number | RGBTuple | null
) : this

Sets the color of this embed

setDescription(
description: string | null
) : this

Sets the description of this embed

setFields() : this

Sets the embed's fields (max 25).

setFooter(
options: EmbedFooterOptions | null
) : this

Sets the footer of this embed

setImage(
url: string | null
) : this

Sets the image of this embed

setThumbnail(
url: string | null
) : this

Sets the thumbnail of this embed

setTimestamp(
timestamp?: number | Date | null
) : this

Sets the timestamp of this embed

setTitle(
title: string | null
) : this

Sets the title of this embed

setURL(
url: string | null
) : this

Sets the URL of this embed

spliceFields(
index: number
deleteCount: number
fields: APIEmbedField[]
) : this

Removes, replaces, or inserts fields in the embed (max 25)

toJSON() : APIEmbed

Transforms the embed to a plain object