Class ConstantArgument


  • public class ConstantArgument
    extends SubArgument<InputArgument,​java.lang.String>
    Only accepts inputs that are exactly the same as its name
    • Constructor Detail

      • ConstantArgument

        public ConstantArgument​(java.lang.String name,
                                java.lang.String description)
    • Method Detail

      • getResultType

        public java.lang.Class<java.lang.String> getResultType()
        Specified by:
        getResultType in class Argument<java.lang.String>
        Returns:
        the class of the result's type
      • getCommandOption

        public org.javacord.api.interaction.SlashCommandOption getCommandOption()
        Specified by:
        getCommandOption in class Argument<java.lang.String>
        Returns:
        the command option that need for to register the argument
      • addArgument

        public void addArgument​(InputArgument... arguments)
        Adds arguments to the argument
        Parameters:
        arguments - a list of arguments