addOption method
SelectMenuTextBuilder
addOption({
- required String label,
- required T value,
- String? description,
- PartialEmoji? emoji,
- bool isDefault = false,
Implementation
SelectMenuTextBuilder addOption(
{required String label,
required T value,
String? description,
PartialEmoji? emoji,
bool isDefault = false}) {
_options.add(SelectMenuOption(
label: label,
value: value,
description: description,
emoji: emoji,
isDefault: isDefault,
));
return this;
}