Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
Provides the functionality for registering custom commands.
Methods
registerCommand
registerCommand(customCommand: CustomCommand, callback: (arg0: CustomCommandOrigin, arg1: any[]) => (CustomCommandResult | undefined)): void
Registers a custom command that when executed triggers a script callback.
Parameters
customCommand: CustomCommand
callback: (arg0: CustomCommandOrigin, arg1: any[]) => (CustomCommandResult | undefined)
The callback triggered when the command executes.
Returns void
Notes:
- This function can't be called in restricted-execution mode.
- This function can be called in early-execution mode.
- This function can throw errors.
registerEnum
registerEnum(name: string, values: string[]): void
Registers a custom command enum.
Parameters
- name: string
- values: string[]
Notes:
- This function can't be called in restricted-execution mode.
- This function can be called in early-execution mode.
- This function can throw errors.