Class Command.SubcommandGroup
java.lang.Object
net.dv8tion.jda.api.interactions.commands.Command.SubcommandGroup
- All Implemented Interfaces:
Formattable,IMentionable,ISnowflake,ICommandReference
- Enclosing interface:
Command
An Subcommand Group for a command.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe description of this subcommand group.The localizations of this subcommand group's description forvarious languages.Returns the full command name, including possible subcommand name and subcommand group name.longThe Snowflake id of this entity.getName()The name of this subcommand group.The localizations of this subcommand group's name forvarious languages.@Unmodifiable List<Command.Subcommand> TheSubcommandsin this groupinthashCode()toString()Methods inherited from interface net.dv8tion.jda.api.interactions.commands.ICommandReference
getAsMentionMethods inherited from interface net.dv8tion.jda.api.entities.IMentionable
formatToMethods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getTimeCreated
-
Constructor Details
-
SubcommandGroup
-
-
Method Details
-
getIdLong
public long getIdLong()The Snowflake id of this entity. This is unique to every entity and will never change.This will return the ID of the top level command
- Specified by:
getIdLongin interfaceISnowflake- Returns:
- Long containing the Id.
-
getName
The name of this subcommand group.- Specified by:
getNamein interfaceICommandReference- Returns:
- The name
-
getNameLocalizations
The localizations of this subcommand group's name forvarious languages.- Returns:
- The
LocalizationMapcontaining the mapping fromDiscordLocaleto the localized name
-
getFullCommandName
Description copied from interface:ICommandReferenceReturns the full command name, including possible subcommand name and subcommand group name.
This is the name shown on messages or when writing the command in the text input.Examples:
- When used on a normal base command, the full name is the name itself, as in the name
"ban"is equal to the full name"ban". - When used on a subcommand
"ban", of the base command"mod", the full name resolves to"mod ban" - When the subcommand is part of a subcommand group,
"action"it resolves to"mod action ban"
- Specified by:
getFullCommandNamein interfaceICommandReference- Returns:
- the full command name
- When used on a normal base command, the full name is the name itself, as in the name
-
getDescription
The description of this subcommand group.- Returns:
- The description
-
getDescriptionLocalizations
The localizations of this subcommand group's description forvarious languages.- Returns:
- The
LocalizationMapcontaining the mapping fromDiscordLocaleto the localized description
-
getSubcommands
TheSubcommandsin this group- Returns:
- Immutable
ListofCommand.Subcommand
-
hashCode
public int hashCode() -
equals
-
toString
-