Latite Scripting Documentation (Exports)
Exports > feature/command > Command
Class
Source: feature/command.d.ts:13
new Command( name:
string, description:string, usage:string, aliases:string[]):Command
Source: feature/command.d.ts:25
| 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 |
readonlyaliases:string[]
Source: feature/command.d.ts:16
readonlydescription:string
Source: feature/command.d.ts:15
readonlyname:string
Source: feature/command.d.ts:14
on:
Function
Source: feature/command.d.ts:27
<K>(eventName:
K, handler:CommandEvents[K]):voidSource: feature/command.d.ts:27
Parameter K extends "execute"
Parameter Type eventName Khandler CommandEvents[K]
void