Interface SlashCommandOptionBuilderDelegate



  • public interface SlashCommandOptionBuilderDelegate
    This class is internally used by the SlashCommandOptionBuilder. You usually don't want to interact with this object.
    • Method Detail

      • setType

        void setType​(SlashCommandOptionType type)
        Sets the type of the slash command option.
        Parameters:
        type - The type.
      • setName

        void setName​(String name)
        Sets the name of the slash command option.
        Parameters:
        name - The name.
      • setDescription

        void setDescription​(String description)
        Sets the description of the slash command option.
        Parameters:
        description - The description.
      • setRequired

        void setRequired​(boolean required)
        Sets if the slash command option is required.
        Parameters:
        required - Whether or not the option is required.
      • addChoice

        void addChoice​(SlashCommandOptionChoice choice)
        Adds an choice for the slash command option.
        Parameters:
        choice - The choice.
      • setChoices

        void setChoices​(List<SlashCommandOptionChoice> choices)
        Sets the choices of the slash command option.
        Parameters:
        choices - The choices.
      • addOption

        void addOption​(SlashCommandOption option)
        Adds an slash command option to the slash command option.
        Parameters:
        option - The option.
      • setOptions

        void setOptions​(List<SlashCommandOption> options)
        Sets the slash commands for the slash command option.
        Parameters:
        options - The options.
      • build

        SlashCommandOption build​()
        Build the slash command option.
        Returns:
        The built option.