Skip to content

WebEmbed

classe · Source

Send Embedlink to Discord Only works with Discord Web and Discord Client (no custom theme installed)

  • No Timestamp, Footer, Fields, Author iconURL
  • Video with Embed working
  • Can only choose between image and thumbnail
  • Description limit 350 characters

Constructor

new WebEmbed(data?: WebEmbed)

Parameters

NameTypeDescription
data?WebEmbedRaw data Default: {}.

Properties

imageType

imageType: thumbnail | image

Type image of this embed Source

title

nullable

title: string

The title of this embed Source

description

nullable

description: string

The description of this embed Source

url

nullable

url: string

The URL of this embed Source

color

nullable

color: number

The color of this embed Source

image

nullable

image: WebEmbedImage

The image of this embed, if there is one Source

thumbnail

nullable

thumbnail: WebEmbedThumbnail

The thumbnail of this embed (if there is one) Source

video

readonly · nullable

video: WebEmbedVideo

The video of this embed (if there is one) Source

author

nullable

author: WebEmbedAuthor

The author of this embed (if there is one) Source

provider

nullable

provider: WebEmbedProvider

The provider of this embed (if there is one) Source

redirect

redirect: string

Redirect URL Source

Methods

_setup

private

_setup(data: Object)
**Parameters**
NameTypeDescription
dataObjectThe data for the embed
Source

setAuthor

setAuthor(options: string | EmbedAuthorData | null): WebEmbed

Sets the author of this embed. Parameters

NameTypeDescription
optionsstring | EmbedAuthorData | nullThe options to provide for the author.
Provide null to remove the author data.

Returns: WebEmbedSource

setProvider

setProvider(options: string | EmbedProviderData | null): WebEmbed

Sets the provider of this embed. Parameters

NameTypeDescription
optionsstring | EmbedProviderData | nullThe options to provide for the provider.
Provide null to remove the provider data.

Returns: WebEmbedSource

setColor

setColor(color: ColorResolvable): WebEmbed

Sets the color of this embed. Parameters

NameTypeDescription
colorColorResolvableThe color of the embed

Returns: WebEmbedSource

setDescription

setDescription(description: string): WebEmbed

Sets the description of this embed. Parameters

NameTypeDescription
descriptionstringThe description (Limit 350 characters)

Returns: WebEmbedSource

setImage

setImage(url: string): WebEmbed

Sets the image of this embed. Parameters

NameTypeDescription
urlstringThe URL of the image

Returns: WebEmbedSource

setThumbnail

setThumbnail(url: string): WebEmbed

Sets the thumbnail of this embed. Parameters

NameTypeDescription
urlstringThe URL of the image

Returns: WebEmbedSource

setVideo

setVideo(url: string): WebEmbed

Sets the video of this embed. Parameters

NameTypeDescription
urlstringThe URL of the video

Returns: WebEmbedSource

setTitle

setTitle(title: string): WebEmbed

Sets the title of this embed. Parameters

NameTypeDescription
titlestringThe title

Returns: WebEmbedSource

setURL

setURL(url: string): WebEmbed

Sets the URL of this embed. Parameters

NameTypeDescription
urlstringThe URL

Returns: WebEmbedSource

setRedirect

setRedirect(url: string): WebEmbed

Sets the redirect URL of this embed. Parameters

NameTypeDescription
urlstringThe URL

Returns: WebEmbedSource

Unofficial software. Not affiliated with or supported by Discord.