Class: Embed

Embed()

Represents an embed.

Constructor

new Embed()

Create an embed
Source:

Members

(static) this.description :String

The embed's description.
Type:
  • String
Source:

(static) this.djs :MessageEmbed

The embed as a MessageEmbed.
Type:
  • MessageEmbed
Source:

(static) this.fields :Array.<EmbedField>

The embed's fields.
Type:
  • Array.<EmbedField>
Source:

(static) this.thumbnail :String

The embed's thumbnail URL.
Type:
  • String
Source:

(static) this.title :String

The embed's title.
Type:
  • String
Source:

Methods

sDescription(desc) → {Embed}

Sets the description of the embed.
Parameters:
Name Type Description
desc String The description of the embed.
Source:
Returns:
The new embed.
Type
Embed

sFields(fields) → {Embed}

Sets the fields of the embed.
Parameters:
Name Type Description
fields Array.<EmbedField> The title of the embed.
Source:
Returns:
The new embed.
Type
Embed

sTitle(title) → {Embed}

Sets the title of the embed.
Parameters:
Name Type Description
title String The title of the embed.
Source:
Returns:
The new embed.
Type
Embed

Type Definitions

EmbedField

A field of an embed.
Type:
  • Object
Properties:
Name Type Description
name string Name of the field.
value string Value of the field.
Source: