ofSubcommands
Declares a top-level, non-executable slash command. This is used for subcommands and/or subcommand groups.
See the Discord docs on which paths are allowed.
The default allowed interaction contexts and integration types can be redefined in the corresponding command manager.
Requirements
The first parameter must be:
GuildSlashEvent if the interaction context only contains InteractionContextType.GUILD.
GlobalSlashEvent in other cases.
See also
@JDASlashCommand