Class Command.Subcommand
java.lang.Object
net.dv8tion.jda.api.interactions.commands.Command.Subcommand
- Enclosing interface:
- Command
An Subcommand for a command.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
The description of this subcommand.The localizations of this subcommand's description forvarious languages
.getName()
The name of this subcommand.The localizations of this subcommands's name forvarious languages
.The options for this subcommand, or the subcommands within this group.int
hashCode()
toString()
-
Constructor Details
-
Subcommand
-
-
Method Details
-
getName
The name of this subcommand.- Returns:
- The name
-
getNameLocalizations
The localizations of this subcommands's name forvarious languages
.- Returns:
- The
LocalizationMap
containing the mapping fromDiscordLocale
to the localized name
-
getDescription
The description of this subcommand.- Returns:
- The description
-
getDescriptionLocalizations
The localizations of this subcommand's description forvarious languages
.- Returns:
- The
LocalizationMap
containing the mapping fromDiscordLocale
to the localized description
-
getOptions
The options for this subcommand, or the subcommands within this group.- Returns:
- Immutable list of Options
-
hashCode
public int hashCode() -
equals
-
toString
-