invoke
operator fun invoke(style: ButtonStyle, customId: String, label: String?): ComponentImpl.ComponentCreator(source)
Creates a new Button with the specified style, customId and label.
Return
ComponentImpl.ComponentCreator which contains the json representation of the button.
Parameters
style
The style of the button.
custom Id
The custom id of the button.
label
The label of the button. (Max 80 characters)
Creates a new Button with the specified, label and url (for ButtonStyle.LINK).
Return
ComponentImpl.ComponentCreator which contains the json representation of the button.
Parameters
label
The label of the button. (Max 80 characters)
url
The url of the button.