Class SubArgument<T extends Argument,​R>

  • Type Parameters:
    T - the type of arguments that can contain this argument
    Direct Known Subclasses:
    ConstantArgument, GroupArgument

    public abstract class SubArgument<T extends Argument,​R>
    extends Argument<R>
    Represents a sub argument Classes that extends this class can have arguments
    • Constructor Detail

      • SubArgument

        public SubArgument​(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
    • Method Detail

      • getArguments

        public java.util.LinkedList<T> getArguments()
      • addArgument

        public abstract void addArgument​(T argument)
        Adds an argument to the argument
        Parameters:
        argument - the argument