Annotation Interface SubcommandGroup


@ReleasedSince("26.8.301") @Target(TYPE) @Retention(RUNTIME) public @interface SubcommandGroup
Declares a nested static inner class as a Discord Subcommand Group.

A subcommand group acts as an intermediate organizational layer inside a Command, grouping multiple related Subcommand classes together (e.g., /settings roles add).

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    A short summary describing the category of subcommands grouped under this name.
    The name of the subcommand group.
  • Element Details

    • name

      String name
      The name of the subcommand group. Must be lowercase and match Discord's naming requirements.
      Returns:
      the subcommand group name
    • description

      String description
      A short summary describing the category of subcommands grouped under this name.
      Returns:
      the group description