Class Command.Subcommand

java.lang.Object
net.dv8tion.jda.api.interactions.commands.Command.Subcommand
Enclosing interface:
Command

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

  • Method Details

    • 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
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object