Embed

export class Embed
export class Embed
Represents an embed.
Readonly
The author of this embed.
Readonly
color:number | null
The color of this embed.
Readonly
The API embed data.
Readonly
description:string | null
The description of this embed.
Readonly
fields:APIEmbedField[]
An array of fields of this embed.
Readonly
hexColor:string | null
The hex color of this embed.
Readonly
The image of this embed.
Readonly
length:number
The accumulated length for the embed title, description, fields, footer text, and author name.
Readonly
The provider of this embed.
Readonly
thumbnail:EmbedAssetData | null
The thumbnail of this embed.
Readonly
timestamp:string | null
The timestamp of this embed. This is in an ISO 8601 format.
Readonly
title:string | null
The title of this embed.
Readonly
url:string | null
The URL of this embed.
Readonly
The video of this embed.
equals(other):boolean
Whether the given embeds are equal.
NameTypeOptionalDescription
otherEmbed | APIEmbedNoThe embed to compare against
toJSON():APIEmbed
Returns the API-compatible JSON for this embed.