Skip to content

Latest commit

 

History

History
85 lines (57 loc) · 3.25 KB

File metadata and controls

85 lines (57 loc) · 3.25 KB

Latite Scripting Documentation (Exports)


Exports > feature/command > Command

Command

Class

Source: feature/command.d.ts:13

Constructors

constructor()

new Command( name: string, description: string, usage: string, aliases: string[]): Command

Source: feature/command.d.ts:25

Parameters

Parameter Type Description
name string The name of the command
description string A short description of what the command does
usage string The usage of the command put '$' in place of the actual command name and preifx. Example: usage: "$ <name>" -> ".commandname <name>"
aliases string[] Alternative command names the user can use the execute the same command. Can be empty

Returns

Command

Properties

aliases

readonly aliases: string[]

Source: feature/command.d.ts:16

description

readonly description: string

Source: feature/command.d.ts:15

name

readonly name: string

Source: feature/command.d.ts:14

on

on: Function

Source: feature/command.d.ts:27

Type declaration (on)

<K>(eventName: K, handler: CommandEvents[K]): void

Source: feature/command.d.ts:27

Type parameters
Parameter
K extends "execute"
Parameters
Parameter Type
eventName K
handler CommandEvents[K]
Returns

void