hookCommand

Hook a chat command.

  1. void hookCommand(char[] cmd, EatMode function(in char[][] words, in char[][] words_eol) callback, char[] helpText, CommandPriority priority)
    void
    hookCommand
    (
    in char[] cmd
    ,
    EatMode function
    (
    in char[][] words
    ,
    in char[][] words_eol
    )
    callback
    ,
    in char[] helpText = null
    ,)
  2. void hookCommand(char[] cmd, EatMode delegate(in char[][] words, in char[][] words_eol) callback, char[] helpText, CommandPriority priority)

Parameters

cmd char[]

name of command

callback EatMode function
(
in char[][] words
,
in char[][] words_eol
)

_callback function or delegate

helpText char[]

instructions for this command, displayed when the /help <cmd> command is invoked

priority CommandPriority

priority of this hook. Should be CommandPriority.normal

Meta