command
API reference for command
Function: command()
Section titled “Function: command()”command<
CommandType>(…args):CommandType
Helper for creating command instances
Type Parameters
Section titled “Type Parameters”CommandType
Section titled “CommandType”CommandType extends Command<string, DefaultRecord, undefined>
Parameters
Section titled “Parameters”…CommandMetadataOf<CommandType> extends undefined ? [CommandTypeOf<CommandType>, CommandDataOf<CommandType>] : [CommandTypeOf<CommandType>, CommandDataOf<CommandType>, CommandMetadataOf<CommandType>]
Returns
Section titled “Returns”CommandType