FivePD API
Models/CommandModels

Command

Represents a "fivepd" command.

Methods

AddSubcommand

Registers a subcommand under the command.

Parameters

NameTypeDescription
namestringName of the subcommand.
functionAction<int, List<object>>The method that'll be invoked upon entering the command.
canBeInvokedFunc<bool>The command's function will only be invoked if this method returns true.

Returns

NameType
CommandThe parent command of the created subcommand.

Properties

Subcommands

Gets the subcommands.

Type: List<Subcommand>