MessageSelectOptionBuilder¶
Description¶
Helper class to build message select menu options.
Methods¶
return type | signature |
---|---|
MessageSelectOptionBuilder | with_descriptions ( String description ) |
MessageSelectOptionBuilder | with_emoji ( Emoji emoji ) |
MessageSelectOptionBuilder | default ( bool value ) |
Dictionary | build ( ) |
Constants¶
-
int MAX_CHARACTERS = 100
Maximum number of characters in text fields.
Method Descriptions¶
-
MessageSelectOptionBuilder MessageSelectOptionBuilder ( String label, String value )
Constructs a new
MessageSelectOptionBuilder
with alabel
andvalue
.
-
MessageSelectOptionBuilder with_descriptions ( String description )
Sets an additional description of the option.
-
MessageSelectOptionBuilder with_emoji ( Emoji emoji )
Sets an
emoji
for the option.
-
MessageSelectOptionBuilder default ( bool value )
Renders this option as selected by default.
-
Dictionary build ( )
Returns the select menu option data as a
Dictionary
.