Skip to content

Commands.findCommand method

Commands › findCommand

Unofficial

Find a command by ID.

Signature:

findCommand(commandId: string): Command | undefined

Parameters:

Parameter Type Description
commandId string ID of command to find.

Returns: Command | undefinedThe command, or undefined if not found.