Models/CommandModels
Command
Represents a "fivepd" command.
Methods
AddSubcommand
Registers a subcommand under the command.
Parameters
| Name | Type | Description |
|---|---|---|
| name | string | Name of the subcommand. |
| function | Action<int, List<object>> | The method that'll be invoked upon entering the command. |
| canBeInvoked | Func<bool> | The command's function will only be invoked if this method returns true. |
Returns
| Name | Type |
|---|---|
| Command | The parent command of the created subcommand. |
Properties
Subcommands
Gets the subcommands.
Type: List<Subcommand>