class ButtonBuilder
extends
ComponentBuilder<APIButtonComponent>declare class ButtonBuilder extends ComponentBuilder<APIButtonComponent>
Represents a button component
readonlyPartial<DataType> data :
The API data associated with this component
Inherited from: ComponentBuilder
setCustomIdcustomId: string) : this (
customId: string
Sets the custom id for this button
setDisableddisabled?: boolean) : this (
disabled?: boolean
Sets whether this button is disabled
setEmojiemoji: APIMessageComponentEmoji) : this (
emoji: APIMessageComponentEmoji
Sets the emoji to display on this button
setLabellabel: string) : this (
label: string
Sets the label for this button
setStylestyle: ButtonStyle) : this (
style: ButtonStyle
Sets the style of this button
setURLurl: string) : this (
url: string
Sets the URL for this button
toJSONAPIButtonComponent () :
Serializes this component to an API-compatible JSON object