addOption method

SelectMenuTextBuilder addOption({
  1. required String label,
  2. required T value,
  3. String? description,
  4. PartialEmoji? emoji,
  5. 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;
}