Skip to content

@pumpkin-plugins/plugin-kit API / commands / CommandArgumentNodeLike

Interface: CommandArgumentNodeLike ​

Defined in: tools/plugin-kit/src/commands.ts:22

An argument node that can request dynamic completions.

Extends ​

Methods ​

executeWithHandlerId() ​

executeWithHandlerId(id): unknown

Defined in: tools/plugin-kit/src/commands.ts:18

Makes the node runnable: the host calls the handler registered under this id.

Parameters ​

id ​

number

Returns ​

unknown

Inherited from ​

CommandNodeLike.executeWithHandlerId


suggestWithHandlerId() ​

suggestWithHandlerId(id): unknown

Defined in: tools/plugin-kit/src/commands.ts:24

Uses a registered callback to suggest values for this argument node.

Parameters ​

id ​

number

Returns ​

unknown


then() ​

then(child): unknown

Defined in: tools/plugin-kit/src/commands.ts:16

Adds a child node and transfers ownership of that child to this node.

Parameters ​

child ​

CommandNodeLike

Returns ​

unknown

Inherited from ​

CommandNodeLike.then

Pumpkin Plugins documentation