class ButtonBuilder
extends
ComponentBuilder<APIButtonComponentdeclare class ButtonBuilder extends ComponentBuilder<APIButtonComponent>
Represents a button component
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