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
Parameters
| Name | Type | Description |
|---|---|---|
data? | WebEmbed | Raw data Default: {}. |
Properties
imageType
Type image of this embed Source
title
nullable
The title of this embed Source
description
nullable
The description of this embed Source
url
nullable
The URL of this embed Source
color
nullable
The color of this embed Source
image
nullable
The image of this embed, if there is one Source
thumbnail
nullable
The thumbnail of this embed (if there is one) Source
video
readonly · nullable
The video of this embed (if there is one) Source
author
nullable
The author of this embed (if there is one) Source
provider
nullable
The provider of this embed (if there is one) Source
redirect
Redirect URL Source
Methods
_setup
private
| Name | Type | Description |
|---|---|---|
data | Object | The data for the embed |
| Source |
setAuthor
Sets the author of this embed. Parameters
| Name | Type | Description |
|---|---|---|
options | string | EmbedAuthorData | null | The options to provide for the author. Provide null to remove the author data. |
Returns: WebEmbedSource
setProvider
Sets the provider of this embed. Parameters
| Name | Type | Description |
|---|---|---|
options | string | EmbedProviderData | null | The options to provide for the provider. Provide null to remove the provider data. |
Returns: WebEmbedSource
setColor
Sets the color of this embed. Parameters
| Name | Type | Description |
|---|---|---|
color | ColorResolvable | The color of the embed |
Returns: WebEmbedSource
setDescription
Sets the description of this embed. Parameters
| Name | Type | Description |
|---|---|---|
description | string | The description (Limit 350 characters) |
Returns: WebEmbedSource
setImage
Sets the image of this embed. Parameters
| Name | Type | Description |
|---|---|---|
url | string | The URL of the image |
Returns: WebEmbedSource
setThumbnail
Sets the thumbnail of this embed. Parameters
| Name | Type | Description |
|---|---|---|
url | string | The URL of the image |
Returns: WebEmbedSource
setVideo
Sets the video of this embed. Parameters
| Name | Type | Description |
|---|---|---|
url | string | The URL of the video |
Returns: WebEmbedSource
setTitle
Sets the title of this embed. Parameters
| Name | Type | Description |
|---|---|---|
title | string | The title |
Returns: WebEmbedSource
setURL
Sets the URL of this embed. Parameters
| Name | Type | Description |
|---|---|---|
url | string | The URL |
Returns: WebEmbedSource
setRedirect
Sets the redirect URL of this embed. Parameters
| Name | Type | Description |
|---|---|---|
url | string | The URL |
Returns: WebEmbedSource