export declare class EmbedBuilder
Represents a embed in a message (image/video preview, rich embed, etc.)
Adds fields to the embed (max 25)
Name | Type | Optional | Description |
---|---|---|---|
fields | RestOrArray<APIEmbedField> | No | None |
Sets the author of this embed
Name | Type | Optional | Description |
---|---|---|---|
options | EmbedAuthorOptions | null | No | None |
Sets the color of this embed
Name | Type | Optional | Description |
---|---|---|---|
color | number | RGBTuple | null | No | None |
Sets the description of this embed
Name | Type | Optional | Description |
---|---|---|---|
description | string | null | No | None |
Sets the embed's fields (max 25).
Name | Type | Optional | Description |
---|---|---|---|
fields | RestOrArray<APIEmbedField> | No | None |
Sets the footer of this embed
Name | Type | Optional | Description |
---|---|---|---|
options | EmbedFooterOptions | null | No | None |
Sets the image of this embed
Name | Type | Optional | Description |
---|---|---|---|
url | string | null | No | None |
Sets the thumbnail of this embed
Name | Type | Optional | Description |
---|---|---|---|
url | string | null | No | None |
Sets the timestamp of this embed
Name | Type | Optional | Description |
---|---|---|---|
timestamp | number | Date | null | Yes | None |
Sets the title of this embed
Name | Type | Optional | Description |
---|---|---|---|
title | string | null | No | None |
Sets the URL of this embed
Name | Type | Optional | Description |
---|---|---|---|
url | string | null | No | None |
Removes, replaces, or inserts fields in the embed (max 25)
Name | Type | Optional | Description |
---|---|---|---|
index | number | No | None |
deleteCount | number | No | None |
fields | APIEmbedField[] | No | None |
Transforms the embed to a plain object