Represents a select menu option builder.
Extends
BuildersSelectMenuOptionConstructs a new instance of the
StringSelectMenuOptionBuilder class| Name | Type | Optional | Description |
|---|---|---|---|
| data | SelectMenuComponentOptionData | APISelectMenuOption | Yes | None |
Creates a new select menu option builder from JSON data
| Name | Type | Optional | Description |
|---|---|---|---|
| other | JSONEncodable<APISelectMenuOption> | APISelectMenuOption | No | The other data |
Sets whether this option is selected by default.
| Name | Type | Optional | Description |
|---|---|---|---|
| isDefault | boolean | Yes | Whether this option is selected by default |
Sets the description for this option.
| Name | Type | Optional | Description |
|---|---|---|---|
| description | string | No | The description to use |
Sets the emoji to display on this option
| Name | Type | Optional | Description |
|---|---|---|---|
| emoji | ComponentEmojiResolvable | No | The emoji to display on this option |
Sets the label for this option.
| Name | Type | Optional | Description |
|---|---|---|---|
| label | string | No | The label to use |
Sets the value for this option.
| Name | Type | Optional | Description |
|---|---|---|---|
| value | string | No | The value to use |
Serializes this builder to API-compatible JSON data.