TokenizedCommand: {
    canonicalInput: string;
    roomId: string;
    tokens: string[];
}

A type representing sent commands. Any message prefixed with a / is treated as a command, e.g. /help.

Type declaration

  • canonicalInput: string

    A canonical representation of the command. This removes excess whitespace.

    E.g. /rename room My Room would be represented as /rename room My Room.

  • roomId: string

    The room the command was sent to.

  • tokens: string[]

    The tokenised command. Tokens are split by whitespace.