Class Command.Subcommand

  • Enclosing class:
    Command

    public static class Command.Subcommand
    extends Object
    An Subcommand for a command.
    • Constructor Detail

      • Subcommand

        public Subcommand​(DataObject json)
    • Method Detail

      • getName

        @Nonnull
        public String getName()
        The name of this subcommand.
        Returns:
        The name
      • getDescription

        @Nonnull
        public String getDescription()
        The description of this subcommand.
        Returns:
        The description
      • getOptions

        @Nonnull
        public List<Command.Option> getOptions()
        The options for this subcommand, or the subcommands within this group.
        Returns:
        Immutable list of Options
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object