class EmbedFieldBuilder

export declare class EmbedFieldBuilder

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

Constructors

constructor()

Creates a new embed field from API data.

setInline(
inline?: boolean
) : this

Sets whether this field should display inline.

setName(
name: string
) : this

Sets the name for this embed field.

setValue(
value: string
) : this

Sets the value for this embed field.

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.