EmbedFooterBuilder

export declare class EmbedFooterBuilder
export declare class EmbedFooterBuilder
A builder that creates API-compatible JSON data for the embed footer.
constructor(data?)
Creates a new embed footer from API data.
NameTypeOptionalDescription
dataPartial<APIEmbedFooter>YesThe API data to use
clearIconURL():this
Clears the icon URL for this embed footer.
setIconURL(url):this
Sets the url for this embed footer.
NameTypeOptionalDescription
urlstringNoThe url to use
setText(text):this
Sets the text for this embed footer.
NameTypeOptionalDescription
textstringNoThe text to use
toJSON(validationOverride?):APIEmbedFooter
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