Class Command.Subcommand
- java.lang.Object
-
- net.dv8tion.jda.api.interactions.commands.Command.Subcommand
-
- Enclosing class:
- Command
public static class Command.Subcommand extends java.lang.Object
An Subcommand for a command.
-
-
Constructor Summary
Constructors Constructor Description Subcommand(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.java.lang.String
getName()
The name of this subcommand.java.util.List<Command.Option>
getOptions()
The options for this subcommand, or the subcommands within this group.int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Subcommand
public Subcommand(DataObject json)
-
-
Method Detail
-
getName
@Nonnull public java.lang.String getName()
The name of this subcommand.- Returns:
- The name
-
getDescription
@Nonnull public java.lang.String getDescription()
The description of this subcommand.- Returns:
- The description
-
getOptions
@Nonnull public java.util.List<Command.Option> getOptions()
The options for this subcommand, or the subcommands within this group.- Returns:
- Immutable list of Options
-
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
-
-