Class AutocompletableInputArgument<I,​O>

    • Constructor Detail

      • AutocompletableInputArgument

        public AutocompletableInputArgument​(java.lang.String name,
                                            java.lang.String description,
                                            org.javacord.api.interaction.SlashCommandOptionType type)
        Constructs the argument with the default requirements
        Parameters:
        name - the argument's name
        description - the argument's description
        type - the type of the input value
      • AutocompletableInputArgument

        public AutocompletableInputArgument​(java.lang.String name,
                                            java.lang.String description,
                                            org.javacord.api.interaction.SlashCommandOptionType type,
                                            java.lang.Class<O> resultType)
        Runs the default constructor and specifies the result type of the value, that the input will be converted to
        Parameters:
        name - the argument's name
        description - the argument's description
        type - the type of the value
        resultType - the type of the converted value
    • Method Detail

      • getCommandOption

        public org.javacord.api.interaction.SlashCommandOption getCommandOption()
        Overrides:
        getCommandOption in class InputArgument<I,​O>
        Returns:
        the command option that need for to register the argument
      • getAutocompletes

        public java.util.List<Autocomplete> getAutocompletes()
      • addAutocomplete

        public void addAutocomplete​(Autocomplete autocomplete)