Name to give command
Instance Method
register(_:with:_:)
Registers a command
Declaration
func register(_ commandName: String, with options: CommandOptions = CommandOptions(), _ function: @escaping (Message, [String]) -> Void)
Parameters
commandName
-
options
-
Options to give command
function
-
Function to execute once command is sent