Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.56 KB

File metadata and controls

44 lines (33 loc) · 1.56 KB

Latite Scripting Documentation (Exports)


Exports > feature/command > CommandEvents

CommandEvents

Interface

Source: feature/command.d.ts:1

Properties

execute

execute: Function

Source: feature/command.d.ts:9

Type declaration (execute)

( label: string, args: string[], commandLine: string): boolean

Called on any command being used.

Source: feature/command.d.ts:9

Parameters
Parameter Type Description
label string The beginning of the command line (for example, 'test' in '.test 123')
args string[] The list of arguments of the command line (for example, ['123'] in '.test 123')
commandLine string The command line (for example, '.test 123 test' in '.test 123 test')
Returns

boolean

Whether the command usage is successful or not (return false if the user misused the command)