EmbedConstructor to create embeds easily.
.author
The author of the embed
type Object?
.color
The color of the embed
type Number?
.description
The description of the embed
type String?
.fields
.footer
The footer of the embed
type Object?
.image
The image of the embed
type Object?
.thumbnail
The thumbnail of the embed
type Object?
.timestamp
.title
The title of the embed
type String?
.url
The url of the embed title
type String?
new EmbedConstructor(data)
Parameter Default Description data {}Object (optional)
The data of the embed. See
Sets the title of the embed
Parameter Description title String
The new title of the embed
Returns this
Sets the description of the embed
Parameter Description description String
The new description of the embed
Returns this
Sets the title URL of the embed
Parameter Description url String
The new URL of the title
Returns this
Sets the timestamp of the embed
Parameter Description timestamp String | Date | Number
The new timestamp of the embed
Returns this
Sets the color of the embed
Parameter Description color String | Number
The new color of the embedg Number (optional) b Number (optional)
Returns this
Sets the footer of the embed
Parameter Description footer String | Object
The new footer of the embedfooter.text String
The footer textfooter.icon_url String (optional)
The icon URL of the new footericonURL String (optional)
The URL of the new footer icon
Returns this
Sets the image of the embed
Parameter Description image String | Object
The new image of the embedimage.url String (optional)
The url of the new embed image
Returns this
Sets the thumbnail of the embed
Parameter Description thumbnail String | Object
The new thumbnail of the embedthumbnail.url String (optional)
The url of the new embed thumbnail
Returns this
Sets the author of the embed
Parameter Description author String | Object
The new author of the embedauthor.name String
The name of the authorauthor.icon_url String (optional)
The icon url of the authorauthor.url String (optional)
The url of the authoriconURL String (optional)
The icon url of the authorurl String (optional)
The url of the author
Returns this
Sets the fields of the embed
Parameter Description fields Array<Object> fields[].name String
The name of the fieldfields[].value String
The value of the fieldfields[].inline Boolean (optional)
Returns this
Add a field to the embed
Parameter Description field Object | String
The new field of the embed or the namefield.name String
The name of the fieldfield.value String
The value of the fieldfield.inline Boolean (optional) value String (optional)
The value of the fieldinline Boolean (optional)
Returns this
Add fields to the embed
Parameter Description fields Array<Object> | Array<Array<Object>> fields[].name String
The name of the fieldfields[].value String
The value of the fieldfields[].inline Boolean (optional)
Returns this
Returns APIEmbed