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.Object
An 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 boolean
equals(java.lang.Object obj)
java.lang.String
getDescription()
The description of this subcommand group.java.lang.String
getName()
The name of this subcommand group.java.util.List<Command.Subcommand>
getSubcommands()
TheSubcommands
in this groupint
hashCode()
java.lang.String
toString()
-
-
-
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()
TheSubcommands
in this group- Returns:
- Immutable
List
ofCommand.Subcommand
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-