Class Command.Subcommand
- java.lang.Object
-
- net.dv8tion.jda.api.interactions.commands.Command.Subcommand
-
-
Constructor Summary
Constructors Constructor Description Subcommand(DataObject json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getDescription()
The description of this subcommand.String
getName()
The name of this subcommand.List<Command.Option>
getOptions()
The options for this subcommand, or the subcommands within this group.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
Subcommand
public Subcommand(DataObject json)
-
-
Method Detail
-
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
-
-