nyx Typedoc
    Preparing search index...

    Interface SubCommandGroup<Types>

    An SubCommand Group belonging to an ParentCommand. This cannot be executed by itself and merely exists for grouping subcommands.

    interface SubCommandGroup<Types extends InteractionTypes = InteractionTypes> {
        size: number;
        addChildren(...children: SubCommand<Types>[]): this;
        findChildByClass<SearchedChild extends ClassImplements<SubCommand<Types>>>(
            child: SearchedChild,
        ): InstanceType<SearchedChild> | null;
        findChildByName(name: string): SubCommand<Types> | null;
        getChildren(): ReadonlyCollection<string, SubCommand<Types>>;
        getData(): APIApplicationCommandSubcommandGroupOption;
        getMaxChildren(): number;
        getMeta(): Readonly<Metadata> | null;
        getParent(): ParentCommand;
        isContextMenu(): this is ContextMenuCommand<Types>;
        isParent(): this is ParentCommand<Types>;
        isStandalone(): this is StandaloneCommand<Types>;
        isSubCommand(): this is SubCommand<Types>;
        isSubCommandGroup(): this is SubCommandGroup<Types>;
        removeChildByInstance(child: SubCommand): this;
        removeChildByName(child: string): this;
    }

    Type Parameters

    Hierarchy (View Summary)

    Implemented by

    Index
    size: number

    The number of children this command has.