commands.Group
- interface Group
A slash command with subcommands, such as
/settings view. Groups can be nested once, matching Discord’s single subcommand-group level. Filters and permissions set on a group apply to every subcommand in it.Methods
-
Group.group(config:
GroupConfig)Group
-
Group.slash<TSchema>(config:
SlashConfig<TSchema>, handler: (interaction:Interaction, args: InferOptions<TSchema>) => Promise<unknown>) { description: string; name: string; } - Type parameters:
TSchema – (extends OptionMap)
-
Group.group(config: