Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Caution
This interface is still in pre-release. Its signature may change or it may be removed in future releases.
Define the custom command, including name, permissions, and parameters.
Properties
cheatsRequired
cheatsRequired?: boolean;
Cheats must be enabled to run this command. Defaults to true.
Type: boolean
description
description: string;
Command description as seen on the command line.
Type: string
mandatoryParameters
mandatoryParameters?: CustomCommandParameter[];
List of mandatory command parameters.
Type: CustomCommandParameter[]
name
name: string;
The name of the command. A namespace is required.
Type: string
optionalParameters
optionalParameters?: CustomCommandParameter[];
List of optional command parameters.
Type: CustomCommandParameter[]
permissionLevel
permissionLevel: CommandPermissionLevel;
The permission level required to execute the command.
Type: CommandPermissionLevel