detritus

MessageEmbedclass

Embed Structure, used for [Message] Structures

On this page

Embed Structure, used for [Message] Structures

import { Structures } from 'detritus-client';

Structures.MessageEmbed;
38 properties4 methods15 inheritedsrc/structures/messageembed.ts:56

Constructor

Properties

audio?
author?
client
readonly
Inherited from BaseStructure.client
color?
number
optional
components?
contentScanVersion?
number
optional
description?
string
optional
fields?
optional
flags?
number
optional
image?
provider?
referenceId?
string
optional
thumbnail?
timestamp?
Date
optional
title?
string
optional
type
Default MessageEmbedTypes.RICH
url?
string
optional
video?

Accessors

containsExplicitContent
boolean
get
containsGoreContent
boolean
get
containsSelfHarmContent
boolean
get
hasAttachment
boolean
get
isApplicationNews
boolean
get
isArticle
boolean
get
isAudio
boolean
get
isAutoModerationMessage
boolean
get
isAutoModerationNotification
boolean
get
isClone
boolean
get
Inherited from BaseStructure.isClone
isComponents
boolean
get
isGifV
boolean
get
isImage
boolean
get
isPollResult
boolean
get
isRich
boolean
get
isTweet
boolean
get
isVideo
boolean
get
length
number
get
pollResult
get

The finished poll's outcome on poll_result embeds, discord sends it as named fields with string values

shardId
number
get
Inherited from BaseStructure.shardId
size
number
get

Methods

getFieldValue()

src/structures/messageembed.ts:216
getFieldValue(name: string): string | undefined

The value of the first field with this name system embeds (automod alerts, poll results) store their data in fields, see the MessageEmbed*Fields enums for the names