Carbon
CoreClasses

Embed

Represents an embed in a message.

Constructors

new Embed()

new Embed(embed?): Embed

Create an embed from an API embed

Parameters

ParameterType
embed?APIEmbed

Returns

Embed

Properties

PropertyTypeDescription
author?object-
author.icon_url?string-
author.namestring-
author.url?string-
color?numberThe color of the embed
description?stringThe description of the embed
fields?object[]-
footer?objectThe footer of the embed
footer.icon_url?string-
footer.textstring-
image?stringThe image URL of the embed
thumbnail?stringThe thumbnail URL of the embed
timestamp?stringThe timestamp of the embed
title?stringThe title of the embed
url?stringThe URL of the embed

Methods

serialize()

serialize(): APIEmbed

Internal

Serialize the embed to an API embed

Returns

APIEmbed

On this page

Edit on GitHub