public static class OptionObject.OptionObjectBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
OptionObject |
build() |
OptionObject.OptionObjectBuilder |
description(PlainTextObject description)
A plain_text https://api.slack.com/reference/block-kit/composition-objects#text
only text object that defines a line of descriptive text shown below the text field beside the radio button.
|
OptionObject.OptionObjectBuilder |
text(PlainTextObject text)
The formatting to use for this text object.
|
String |
toString() |
OptionObject.OptionObjectBuilder |
url(String url)
A URL to load in the user's browser when the option is clicked.
|
OptionObject.OptionObjectBuilder |
value(String value)
The text for the block.
|
public OptionObject.OptionObjectBuilder text(PlainTextObject text)
public OptionObject.OptionObjectBuilder value(String value)
public OptionObject.OptionObjectBuilder description(PlainTextObject description)
public OptionObject.OptionObjectBuilder url(String url)
Maximum length for this field is 3000 characters. If you're using url, you'll still receive an interaction payload and will need to send an acknowledgement response.
public OptionObject build()
Copyright © 2020. All rights reserved.