Optional requirements?: { userIDs?: number[]; custom?: any }
Optional userIDs?: number[]
custom?:function
custom(): boolean
Returns boolean
Optional restricted?: boolean
Handler
Handler:(src: number, args: any[], raw: string) => any
Type declaration
(src: number, args: any[], raw: string): any
description
A Handler to execute function when called.
Parameters
src: number
(Source) return the player id whose triggering it.
args: any[]
(Arguments) return text after command in Array, example, if you're triggering the command like this "/hello all people", the arguments returns was ["all", "people"].
raw: string
(Raw) return raw version of the command triggered.
Set a configuration on a command
description Description of a command
argsDescription Description of every arguments required
restricted If you want to limit your command with an ace permission automatically
cooldown Cooldown of the command usage
consoleOnly Whether if the command can only be used on the console
requirements User requirements before using the command
caseInsensitive Whether the command is case sensitive or not
cooldownExclusions Set the cooldown bypass for some users or groups