FivePD API
Interfaces

ICommandService

Responsible for the global "fivepd" command.

Methods

RegisterCommand

Register a command under "/fivepd".

Parameters

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

Returns

NameType
CommandThe created command.