class EmbedFieldBuilder

external
declare class EmbedFieldBuilder implements JSONEncodable<APIEmbedField>

A builder that creates API-compatible JSON data for embed fields.

Constructors

constructor()

Creates a new embed field from API data.

external
setInline(
inline?: boolean
) : this

Sets whether this field should display inline.

external
setName(
name: string
) : this

Sets the name for this embed field.

external
setValue(
value: string
) : this

Sets the value for this embed field.

external
toJSON(
validationOverride?: boolean
) : APIEmbedField

Serializes this builder to API-compatible JSON data.Note that by disabling validation, there is no guarantee that the resulting object will be valid.