Constructor
new DropdownOption()
Methods
setDefault(isDefault) → {DropdownOption}
- Description:
Sets whether this is the default selected option.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
isDefault |
Boolean | Whether this option should be selected by default. |
Returns:
- Type
- DropdownOption
setDescription(description) → {DropdownOption}
- Description:
Sets the description.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
description |
String | Sets the description. |
Returns:
- Type
- DropdownOption
setEmoji(emoji) → {DropdownOption}
- Description:
Sets the emoji to be displayed on the dropdown option.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
emoji |
String | The emoji to display on the dropdown option. For a custom emoji, it should be in the format "<:bitcoin:844240546246950922>". |
Returns:
- Type
- DropdownOption
setLabel(label) → {DropdownOption}
- Description:
Sets the label.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
label |
String | Sets the label. |
Returns:
- Type
- DropdownOption
setValue(value) → {DropdownOption}
- Description:
Sets the value.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
String | Sets the value. |
Returns:
- Type
- DropdownOption
toJSON() → {Object}
- Description:
Returns the correct Discord format for a dropdown option.
- Source:
Returns:
- Type
- Object