Class SlashCommandOptionChoiceBuilder



  • public class SlashCommandOptionChoiceBuilder
    extends Object
    • Constructor Detail

      • SlashCommandOptionChoiceBuilder

        public SlashCommandOptionChoiceBuilder​()
        Creates a new slash command option choice builder.
    • Method Detail

      • setName

        public SlashCommandOptionChoiceBuilder setName​(String name)
        Sets the name of the slash command option choice.
        Parameters:
        name - The name.
        Returns:
        The current instance in order to chain call methods.
      • setValue

        public SlashCommandOptionChoiceBuilder setValue​(String value)
        Sets the string value of the slash command option choice.
        Parameters:
        value - The value.
        Returns:
        The current instance in order to chain call methods.
      • setValue

        public SlashCommandOptionChoiceBuilder setValue​(int value)
        Sets the int value of the slash command option choice.
        Parameters:
        value - The value.
        Returns:
        The current instance in order to chain call methods.
      • build

        public SlashCommandOptionChoice build​()
        Builds the slash command option choice.
        Returns:
        The slash command option choice.