Annotation Interface SelectOption


@Repeatable(com.github.kaktushose.jda.commands.annotations.internal.SelectOptionContainer.class) @Target(METHOD) @Retention(RUNTIME) public @interface SelectOption
Used to define SelectOptions for StringSelectMenus.
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Gets the label of an option.
    Gets the value of an option.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Gets the description of an option.
    Gets the Emoji of an option.
    boolean
    Gets whether this option is a default option.
  • Element Details

    • label

      String label
      Gets the label of an option.
      Returns:
      the label
    • value

      String value
      Gets the value of an option.
      Returns:
      the value
    • description

      String description
      Gets the description of an option.
      Returns:
      the description
      Default:
      ""
    • emoji

      String emoji
      Gets the Emoji of an option.
      Returns:
      the Emoji
      Default:
      ""
    • isDefault

      boolean isDefault
      Gets whether this option is a default option.
      Returns:
      true if this SelectOption is a default option
      Default:
      false