nyx Typedoc
    Preparing search index...

    Interface ChildableCommand<Data, Child, Types>

    A command that can contain children commands.

    interface ChildableCommand<
        Data extends Nameable,
        Child extends ChildCommand<any, any>,
        Types extends InteractionTypes = InteractionTypes,
    > {
        size: number;
        addChildren(...children: Child[]): this;
        findChildByClass<SearchedChild extends ClassImplements<Child>>(
            child: SearchedChild,
        ): InstanceType<SearchedChild> | null;
        findChildByName(name: string): Child | null;
        getChildren(): ReadonlyCollection<string, Child>;
        getData(): Data;
        getMaxChildren(): number;
        getMeta(): Readonly<Metadata> | null;
        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: Child): this;
        removeChildByName(child: string): this;
    }

    Type Parameters

    Hierarchy (View Summary)

    Implemented by

    Index
    size: number

    The number of children this command has.