Constructor
new SelectMenuOption()
Example
const { SelectMenuOption } = require("interactions.js");
const select = new SelectMenuOption()
.setLabel('label') // Set the label of the select menu option
.setValue('value') // Set the value of the select menu option
.setDescription('description') // Set the description of the select menu option
.setEmoji('🎍') // Set the emoji of the select menu option
.setDefault(true) // Set the default of the select menu optionMethods
setDefault(defaultState) → {SelectMenuOption}
set the default state of the option
Parameters:
| Name | Type | Description |
|---|---|---|
defaultState | boolean |
Returns:
- Type:
- SelectMenuOption
setDescription(description) → {SelectMenuOption}
Set the description of the select menu option
Parameters:
| Name | Type | Description |
|---|---|---|
description | string |
Returns:
- Type:
- SelectMenuOption
setEmoji(emoji) → {SelectMenuOption}
Set the emoji of the select menu option
Parameters:
| Name | Type | Description |
|---|---|---|
emoji | object |
Returns:
- Type:
- SelectMenuOption
setLabel(label) → {SelectMenuOption}
Set the label of the select menu option
Parameters:
| Name | Type | Description |
|---|---|---|
label | string |
Returns:
- Type:
- SelectMenuOption
setValue(value) → {SelectMenuOption}
Set the value of the select menu option
Parameters:
| Name | Type | Description |
|---|---|---|
value | string |
Returns:
- Type:
- SelectMenuOption