Interface SlashCommandOptionChoiceBuilderDelegate


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

      • setName

        void setName​(java.lang.String name)
        Sets the name of the slash command option choice.
        Parameters:
        name - The name.
      • addNameLocalization

        void addNameLocalization​(DiscordLocale locale,
                                 java.lang.String localization)
        Adds a name localization for the given locale.
        Parameters:
        locale - The locale to add this localization for.
        localization - The choice name localization.
      • setValue

        void setValue​(java.lang.String value)
        Sets the string value of the slash command option choice.
        Parameters:
        value - The value.
      • setValue

        void setValue​(long value)
        Sets the long value of the slash command option choice. Can be any long between -2^53 and 2^53.
        Parameters:
        value - The value.
      • build

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