Options
All
  • Public
  • Public/Protected
  • All
Menu

Utils Embed Structure

Hierarchy

Index

Constructors

constructor

Properties

Readonly _keys

_keys: BaseSet<string> = ...

Optional author

author: EmbedAuthor

Optional color

color: number

Optional description

description: string

Optional fields

fields: BaseCollection<number, EmbedField>

Optional footer

footer: EmbedFooter

Optional image

image: EmbedImage

Optional provider

provider: EmbedProvider

Optional referenceId

referenceId: string

Optional thumbnail

thumbnail: EmbedThumbnail

Optional timestamp

timestamp: Date

Optional title

title: string

type

type: string = ...

Optional url

url: string

Optional video

video: EmbedVideo

Accessors

length

  • get length(): number

size

  • get size(): number

Methods

[custom]

  • [custom](): object

_getFromSnake

  • _getFromSnake(key: string): any

_setFromSnake

  • _setFromSnake(key: string, value: any): any

addField

  • addField(name: string, value: string, inline?: boolean): Embed

difference

  • difference(key: string, value: any): [boolean, any]

differences

differencesBetween

  • differencesBetween(structure: Structure): null | object

hasDifference

  • hasDifference(key: string, value: any): boolean

hasDifferences

hasDifferencesBetween

  • hasDifferencesBetween(structure: Structure): boolean

merge

mergeValue

  • mergeValue(key: string, value: any): void

setAuthor

  • setAuthor(name?: null | string, iconUrl?: null | string, url?: null | string): Embed
  • Parameters

    • Optional name: null | string
    • Optional iconUrl: null | string
    • Optional url: null | string

    Returns Embed

setColor

  • setColor(color: number): Embed

setDescription

  • setDescription(description: null | string): Embed

setFooter

  • setFooter(text: string, iconUrl?: null | string): Embed

setImage

  • setImage(url: string): Embed

setThumbnail

  • setThumbnail(url: string): Embed

setTimestamp

  • setTimestamp(timestamp?: string | number | Date): Embed

setTitle

  • setTitle(title: string): Embed

setUrl

  • setUrl(url: string): Embed

toJSON

Generated using TypeDoc