Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EmbedBuilder

Represents an embed in a message (image/video preview, rich embed, etc.)

Hierarchy

  • EmbedBuilder

Index

Constructors

Properties

data: APIEmbed

The raw data of this embed

Accessors

  • The author of this embed

    Returns undefined | APIEmbedAuthor

  • get color(): undefined | number
  • The color of this embed

    Returns undefined | number

  • get description(): undefined | string
  • The description of this embed

    Returns undefined | string

  • The fields of this embed

    Returns undefined | APIEmbedField[]

  • The footer of this embed

    Returns undefined | APIEmbedFooter

  • The image of this embed

    Returns undefined | APIEmbedImage

  • The provider of this embed

    Returns undefined | APIEmbedProvider

  • The thumbnail of this embed

    Returns undefined | APIEmbedThumbnail

  • get timestamp(): undefined | string
  • The timestamp of this embed

    Returns undefined | string

  • get title(): undefined | string
  • The title of this embed

    Returns undefined | string

  • get url(): undefined | string
  • The URL of this embed

    Returns undefined | string

  • The video of this embed

    Returns undefined | APIEmbedVideo

Methods

  • Sets the color of this embed

    Parameters

    • color: null | number

    Returns EmbedBuilder

  • Sets the description of this embed

    Parameters

    • description: null | string

    Returns EmbedBuilder

  • Make the provided fields the only fields in this embed

    Parameters

    Returns EmbedBuilder

  • Sets the image of this embed

    Parameters

    • url: null | string

    Returns EmbedBuilder

  • Sets the thumbnail of this embed

    Parameters

    • url: null | string

    Returns EmbedBuilder

  • setTimestamp(timestamp?: null | number | Date): EmbedBuilder
  • Sets the timestamp of this embed

    Parameters

    • timestamp: null | number | Date = ...

    Returns EmbedBuilder

  • Sets the title of this embed

    Parameters

    • title: null | string

    Returns EmbedBuilder

  • Sets the URL of this embed

    Parameters

    • url: null | string

    Returns EmbedBuilder

  • Returns the raw data of this embed

    Returns APIEmbed

Generated using TypeDoc version 0.22.16, the 9/16/2022 at 1:09:15 AM