Skip to content

AddOn

Check whether an Add-On command is available and execute it through the official JSON API.

Access this group through api.official.addon.

Commands

For exceptions shared by Unified API commands, see error handling.

execute_add_on_command

execute_add_on_command(
    add_on_command_id: AddOnCommandId,
    add_on_command_parameters: AddOnCommandParameters
    | None = None,
) -> AddOnCommandResponse

Executes a command registered in an Add-On.

Parameters:

Returns:

is_add_on_command_available

is_add_on_command_available(
    add_on_command_id: AddOnCommandId,
) -> bool

Checks if the command is available or not.

Parameters:

Returns:

  • bool –

    Returns true if the command is available.

These include the parameter and result models used inside the client. The command signatures above show what to pass and what is returned.