Interface CommandDefinition

All Superinterfaces:
Definition, InteractionDefinition, Invokable, JDAEntity<net.dv8tion.jda.api.interactions.commands.build.CommandData>
All Known Implementing Classes:
ContextCommandDefinition, SlashCommandDefinition

public sealed interface CommandDefinition extends InteractionDefinition, JDAEntity<net.dv8tion.jda.api.interactions.commands.build.CommandData> permits ContextCommandDefinition, SlashCommandDefinition
Common interface for command interaction definitions.
See Also:
  • Method Details

    • name

      String name()
      The name of the command.
    • commandConfig

    • commandType

      net.dv8tion.jda.api.interactions.commands.Command.Type commandType()
      The Command.Type of this command.