primary
Creates a
primary
button.- Parameters:
customId
- A developer-defined identifier for the button.label
- The text that appears on the button.- Returns:
- A button with the given data.
static enum
MessageComponent.Type
static Button
danger(String customId,
ReactionEmoji emoji)
danger
button.static Button
danger(String customId,
ReactionEmoji emoji,
String label)
danger
button.static Button
danger
button.disabled()
disabled(boolean value)
getEmoji()
getLabel()
getStyle()
getUrl()
boolean
static Button
link(String url,
ReactionEmoji emoji)
link
button.static Button
link(String url,
ReactionEmoji emoji,
String label)
link
button.static Button
link
button.static Button
primary(String customId,
ReactionEmoji emoji)
primary
button.static Button
primary(String customId,
ReactionEmoji emoji,
String label)
primary
button.static Button
primary
button.static Button
secondary(String customId,
ReactionEmoji emoji)
secondary
button.static Button
secondary(String customId,
ReactionEmoji emoji,
String label)
secondary
button.static Button
secondary
button.static Button
success(String customId,
ReactionEmoji emoji)
success
button.static Button
success(String customId,
ReactionEmoji emoji,
String label)
success
button.static Button
success
button.fromData, getData, getType
primary
button.customId
- A developer-defined identifier for the button.label
- The text that appears on the button.primary
button.customId
- A developer-defined identifier for the button.emoji
- The emoji that appears on the button.primary
button.customId
- A developer-defined identifier for the button.emoji
- The emoji that appears on the button.label
- The text that appears on the button.secondary
button.customId
- A developer-defined identifier for the button.label
- The text that appears on the button.secondary
button.customId
- A developer-defined identifier for the button.emoji
- The emoji that appears on the button.secondary
button.customId
- A developer-defined identifier for the button.emoji
- The emoji that appears on the button.label
- The text that appears on the button.success
button.customId
- A developer-defined identifier for the button.label
- The text that appears on the button.success
button.customId
- A developer-defined identifier for the button.emoji
- The emoji that appears on the button.success
button.customId
- A developer-defined identifier for the button.emoji
- The emoji that appears on the button.label
- The text that appears on the button.danger
button.customId
- A developer-defined identifier for the button.label
- The text that appears on the button.danger
button.customId
- A developer-defined identifier for the button.emoji
- The emoji that appears on the button.danger
button.customId
- A developer-defined identifier for the button.emoji
- The emoji that appears on the button.label
- The text that appears on the button.link
button.url
- The url to navigate to when clicked.label
- The text that appears on the button.link
button.url
- The url to navigate to when clicked.emoji
- The emoji that appears on the button.link
button.url
- The url to navigate to when clicked.emoji
- The emoji that appears on the button.label
- The text that appears on the button.value
- True if the button should be disabled otherwise False.