Class WhoCollector

Get a full WHO response from the server

352 - WHO line: <channel> <user> <host> <server> <nick> <H|G>[*][@|+] :<hopcount> <real_name>

315 - end of WHO

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

additional: string[]

Append lines with these commands to buffer.

await: string

Wait for this command from the server.

buffer: IIRCLine[] = []

Buffer list of additional data.

match?: ((line: IIRCLine) => boolean)

Type declaration

Methods

  • Line matching commands in additional will call this function. Use it to populate the buffer.

    Parameters

    Returns void

  • Resolve the collector.

    Parameters

    • line: IIRCLine

      The line resolving to await

    • data: IIRCLine[]

      Additional data in buffer, usually only present when using additional

    Returns void

Generated using TypeDoc