Methods
create
- create(callback: (...args: string[]) => any): CommandAddon
- create(opts: {}): CommandAddon
- create(name: string, callback: (sender: any, ...args: string[]) => any): CommandAddon
- create(name: string, callback: (sender: any, ...args: string[]) => any, opts: {}): CommandAddon
-
Parameters
-
callback: (...args: string[]) => any
Returns CommandAddon
-
Parameters
Returns CommandAddon
-
Parameters
-
name: string
-
callback: (sender: any, ...args: string[]) => any
-
- (sender: any, ...args: string[]): any
-
Parameters
-
sender: any
-
Rest ...args: string[]
Returns any
Returns CommandAddon
-
Parameters
-
name: string
-
callback: (sender: any, ...args: string[]) => any
-
- (sender: any, ...args: string[]): any
-
Parameters
-
sender: any
-
Rest ...args: string[]
Returns any
-
opts: {}
Returns CommandAddon
createListType
- createListType<T>(type: string, items: T): Commands
-
Type parameters
Parameters
createType
-
Parameters
-
Parameters
isConsole
- isConsole(sender: any): boolean
-
Parameters
Returns boolean
runCommand
- runCommand(sender: any, command: string): void
-
Parameters
-
sender: any
-
command: string
Returns void
runConsoleCommand
- runConsoleCommand(command: string): void
-
Parameters
Returns void
The wrapper around commands provided by Velt.