Class Command.SubcommandGroup
- java.lang.Object
-
- net.dv8tion.jda.api.interactions.commands.Command.SubcommandGroup
-
- Enclosing class:
- Command
public static class Command.SubcommandGroup extends java.lang.ObjectAn Subcommand Group for a command.
-
-
Constructor Summary
Constructors Constructor Description SubcommandGroup(DataObject json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetDescription()The description of this subcommand group.java.lang.StringgetName()The name of this subcommand group.java.util.List<Command.Subcommand>getSubcommands()TheSubcommandsin this groupinthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
SubcommandGroup
public SubcommandGroup(DataObject json)
-
-
Method Detail
-
getName
@Nonnull public java.lang.String getName()
The name of this subcommand group.- Returns:
- The name
-
getDescription
@Nonnull public java.lang.String getDescription()
The description of this subcommand group.- Returns:
- The description
-
getSubcommands
@Nonnull public java.util.List<Command.Subcommand> getSubcommands()
TheSubcommandsin this group- Returns:
- Immutable
ListofCommand.Subcommand
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-