import { Embed } from "https://deno.land/x/harmony@v2.6.0/src/structures/embed.ts";
Message Embed Object
Constructors
new
Embed(data?: EmbedPayload)Properties
optional
author: EmbedAuthoroptional
fields: EmbedField[]files: MessageAttachment[]
optional
image: EmbedImageoptional
provider: EmbedProvideroptional
thumbnail: EmbedThumbnailoptional
type: EmbedTypesoptional
video: EmbedVideoMethods
addField(field: EmbedField): Embed
Adds a Field to the Embed
addFields(...fields: EmbedField[]): Embed
Adds multiple fields to the Embed
attach(...files: MessageAttachment[]): Embed
setAuthor(author: EmbedAuthor): Embed
Set Author of the Embed
setDescription(description: string): Embed
Set Embed description
setFields(fields: EmbedField[]): Embed
setImage(image: EmbedImage | string): Embed
Set Image of the Embed
setProvider(name: string, url?: string): Embed
Set Provider of the Embed
setProvider(provider: EmbedProvider): Embed
setThumbnail(thumbnail: EmbedThumbnail | string): Embed
Set Thumbnail Image of the Embed
setTimestamp(timeString: string): Embed
Set Timestamp of the Embed
setTimestamp(unixTimestamp: number): Embed
setTimestamp(dateObject: Date): Embed
setType(type: EmbedTypes): Embed
Set Embed Type
setVideo(video: EmbedVideo | string): Embed
Set Embed Video
Convert Embed Object to Embed Payload JSON