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¶
No commands match. Try another name or clear the filter.
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:
-
add_on_command_id(AddOnCommandId) – -
add_on_command_parameters(AddOnCommandParameters | None, default:None) –
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:
-
add_on_command_id(AddOnCommandId) –
Returns:
-
bool–Returns true if the command is available.
Related types¶
These include the parameter and result models used inside the client. The command signatures above show what to pass and what is returned.