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 booleanequals(Object obj)StringgetDescription()The description of this subcommand.StringgetName()The name of this subcommand.List<Command.Option>getOptions()The options for this subcommand, or the subcommands within this group.inthashCode()StringtoString()
-
-
-
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
-
-