class ButtonBuilder
extends
ComponentBuilder<APIButtonComponentexport declare class ButtonBuilder extends ComponentBuilder<APIButtonComponent>
Represents a button component
Constructors
data?: Partial<APIButtonComponent>)
constructor(data?: Partial<APIButtonComponent>
Constructs a new instance of the ButtonBuilder
class
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