EmbedAuthorBuilder

export declare class EmbedAuthorBuilder
export declare class EmbedAuthorBuilder
A builder that creates API-compatible JSON data for the embed author.
constructor(data?)
Creates a new embed author from API data.
NameTypeOptionalDescription
dataPartial<APIEmbedAuthor>YesThe API data to use
clearIconURL():this
Clears the icon URL for this embed author.
clearURL():this
Clears the URL for this embed author.
setIconURL(iconURL):this
Sets the icon URL for this embed author.
NameTypeOptionalDescription
iconURLstringNoThe icon URL to use
setName(name):this
Sets the name for this embed author.
NameTypeOptionalDescription
namestringNoThe name to use
setURL(url):this
Sets the URL for this embed author.
NameTypeOptionalDescription
urlstringNoThe url to use
toJSON(validationOverride?):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.
NameTypeOptionalDescription
validationOverridebooleanYesForce validation to run/not run regardless of your global preference