Private
jsonPrivate
loadAdd a blank field to the embed (zero width spaces).
Optional
inline: booleanIf the field should be displayed inline.
Add a field to the embed.
The field name.
The field value.
Optional
inline: booleanIf the field should be inline.
Add multiple fields.
Rest
...fields: EmbedField[]the fields to add
Get the current author.
Get the field at the specified index.
The index of the field to get.
Get the current fields.
Get the current footer.
Get the current image.
Get the current thumbnail.
remove the current author
Remove the current color.
Remove the current description.
Remove the current footer.
Remove the current image.
Remove the current thumbnail.
Remove the current timestamp.
Remove the current title.
Remove the current url.
set the embed author
The name of the author.
Optional
iconURL: stringAn icon url for the author.
Optional
url: stringA url for the author.
Set the embed color.
The color.
Set the embed description.
Rest
...other: (string | string[])[]Set the embed footer.
The text.
Optional
iconURL: stringThe icon url.
Set the embed image.
The Image url.
Set the embed thumbnail.
The thumbnail url.
Set the embed timestamp.
An ISO 8601 timestamp, Date object, or "now".
Set the embed title.
The title.
Set the embed url.
The url.
Convert this embed to a json object.
If the returned value should be contained in an array.
Optional
array: falseConvert this embed to a raw json object.
If the returned value should be contained in an array.
Optional
array: falseStatic
loadcreate an embed builder instance (or multiple) from the provided json
the embed json - accepts singular & array
Optional
forceSingular: TGenerated using TypeDoc
load json into this embed builder instance - use static loadFromJSON method
Param
the json to load
Returns