Embed

class Embed()

A read-only embed from a received message. All properties are immutable copies of the Discord embed data.

exported from lib.weeble.d

Properties

Embed.author

type: readonly { iconUrl: string | null; name: string; url: string | null; } | null

Author information, or null if not set.

Embed.color

type: readonly number | null

24-bit RGB sidebar color, or null if not set.

Embed.description

type: readonly string | null

Description text, or null if not set.

Embed.fields

type: readonly { inline: boolean; name: string; value: string; }[]

Array of field objects displayed in the embed body.

Embed.footer

type: readonly { iconUrl: string | null; text: string; } | null

Footer information, or null if not set.

Embed.image

type: readonly { height: number | null; proxyUrl: string | null; url: string; width: number | null; } | null

Main image, or null if not set.

Embed.thumbnail

type: readonly { height: number | null; proxyUrl: string | null; url: string; width: number | null; } | null

Thumbnail image, or null if not set.

Embed.timestamp

type: readonly Date | null

ISO-8601 timestamp displayed in the footer, or null if not set.

Embed.title

type: readonly string | null

Title of the embed, or null if not set.

Embed.url

type: readonly string | null

URL the title links to, or null if not set.