Skip to content

Defined in: zaun/js/index.d.ts:514

A rich embed. Up to 10 per message; limits as the protocol’s (title 256, description 4 096, 25 fields, 6 000 characters in all).

new EmbedBuilder(data?): EmbedBuilder

Defined in: zaun/js/index.d.ts:515

EmbedData | Embed

EmbedBuilder

readonly data: EmbedData

Defined in: zaun/js/index.d.ts:518

The protocol’s fields; pictures still to upload are not in it yet.

addFields(…fields): this

Defined in: zaun/js/index.d.ts:530

…(EmbedFieldData | EmbedFieldData[])[]

this


setAuthor(author): this

Defined in: zaun/js/index.d.ts:526

PictureSource

string

string

this


setColor(color): this

Defined in: zaun/js/index.d.ts:523

number | `#${string}` | [number, number, number]

this


setDescription(description): this

Defined in: zaun/js/index.d.ts:520

string

this


setFields(…fields): this

Defined in: zaun/js/index.d.ts:531

…(EmbedFieldData | EmbedFieldData[])[]

this


setFooter(footer): this

Defined in: zaun/js/index.d.ts:527

PictureSource

string

this


setImage(picture): this

Defined in: zaun/js/index.d.ts:528

PictureSource

this


setThumbnail(picture): this

Defined in: zaun/js/index.d.ts:529

PictureSource

this


setTimestamp(time?): this

Defined in: zaun/js/index.d.ts:525

Now when not given.

number | Date

this


setTitle(title): this

Defined in: zaun/js/index.d.ts:519

string

this


setURL(url): this

Defined in: zaun/js/index.d.ts:522

https:// only.

string

this


spliceFields(index, deleteCount, …fields): this

Defined in: zaun/js/index.d.ts:532

number

number

…(EmbedFieldData | EmbedFieldData[])[]

this


toJSON(): EmbedData

Defined in: zaun/js/index.d.ts:533

EmbedData


static from(other): EmbedBuilder

Defined in: zaun/js/index.d.ts:516

EmbedBuilder | EmbedData | Embed

EmbedBuilder