CoreClasses
Embed
Represents an embed in a message.
Constructors
new Embed()
new Embed(
embed
?):Embed
Create an embed from an API embed
Parameters
Parameter | Type |
---|---|
embed ? | APIEmbed |
Returns
Properties
Property | Type | Description |
---|---|---|
author? | object | - |
author.icon_url? | string | - |
author.name | string | - |
author.url? | string | - |
color? | number | The color of the embed |
description? | string | The description of the embed |
fields? | object [] | - |
footer? | object | The footer of the embed |
footer.icon_url? | string | - |
footer.text | string | - |
image? | string | The image URL of the embed |
thumbnail? | string | The thumbnail URL of the embed |
timestamp? | string | The timestamp of the embed |
title? | string | The title of the embed |
url? | string | The URL of the embed |
Methods
serialize()
serialize():
APIEmbed
Internal
Serialize the embed to an API embed
Returns
APIEmbed