class EmbedAuthorBuilder

export declare class EmbedAuthorBuilder

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

Constructors

constructor()

Creates a new embed author from API data.

clearIconURL() : this

Clears the icon URL for this embed author.

clearURL() : this

Clears the URL for this embed author.

setIconURL(
iconURL: string
) : this

Sets the icon URL for this embed author.

setName(
name: string
) : this

Sets the name for this embed author.

setURL(
url: string
) : this

Sets the URL for this embed author.

toJSON(
validationOverride?: boolean
) : APIEmbedAuthor

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