StringSelectOption
Represents an individual option for a string select menu.
Example
Constructors
new StringSelectOption(data)
Parameters
Parameter | Type |
---|---|
data | Partial <APISelectMenuOption > |
Returns
Source
seyfert/src/builders/SelectMenu.ts:322
Properties
Property | Modifier | Type |
---|---|---|
data | public | Partial <APISelectMenuOption > |
Methods
setDefault()
Sets whether the option is the default. [Default=true] - Indicates whether the option is the default.
Parameters
Parameter | Type | Default value |
---|---|---|
Default | boolean | true |
Returns
this
The current StringSelectOption instance.
Source
seyfert/src/builders/SelectMenu.ts:359
setDescription()
Sets the description for the option. description - The description for the option.
Parameters
Parameter | Type |
---|---|
description | string |
Returns
this
The current StringSelectOption instance.
Source
seyfert/src/builders/SelectMenu.ts:349
setEmoji()
Sets the emoji for the option.
Parameters
Parameter | Type | Description |
---|---|---|
emoji | EmojiResolvable | The emoji to set. |
Returns
The modified option instance.
Source
seyfert/src/builders/SelectMenu.ts:369
setLabel()
Sets the label for the option. label - The label for the option.
Parameters
Parameter | Type |
---|---|
label | string |
Returns
this
The current StringSelectOption instance.
Source
seyfert/src/builders/SelectMenu.ts:329
setValue()
Sets the value for the option. value - The value for the option.
Parameters
Parameter | Type |
---|---|
value | string |
Returns
this
The current StringSelectOption instance.
Source
seyfert/src/builders/SelectMenu.ts:339
toJSON()
Converts the option to JSON format.
Returns
APISelectMenuOption
The option data in JSON format.