Class SubcommandData

java.lang.Object
net.dv8tion.jda.api.interactions.commands.build.BaseCommand<net.dv8tion.jda.internal.interactions.CommandDataImpl>
net.dv8tion.jda.api.interactions.commands.build.SubcommandData
All Implemented Interfaces:
SerializableData

public class SubcommandData extends BaseCommand<net.dv8tion.jda.internal.interactions.CommandDataImpl> implements SerializableData
Builder for a Slash-Command subcommand.
  • Constructor Details

    • SubcommandData

      public SubcommandData(@Nonnull String name, @Nonnull String description)
      Create a subcommand builder.
      Parameters:
      name - The subcommand name, 1-32 lowercase alphanumeric characters
      description - The subcommand description, 1-100 characters
      Throws:
      IllegalArgumentException - If any of the following requirements are not met
      • The name must be lowercase alphanumeric (with dash), 1-32 characters long
      • The description must be 1-100 characters long
  • Method Details