Instance Method

register(_:with:_:)

Registers a command

Declaration

func register(_ commandName: String, with options: CommandOptions = CommandOptions(), _ function: @escaping (Message, [String]) -> Void)

Parameters

commandName

Name to give command

options

Options to give command

function

Function to execute once command is sent