Class Collector

Collect a single line from the server.

Hierarchy

Implements

Constructors

Properties

Methods

Constructors

  • Parameters

    • await: string
    • resolve: ((lines: IIRCLine) => void)
    • Optional from: string
    • Optional match: ((line: IIRCLine) => boolean)

    Returns Collector

Properties

await: string

Wait for this command from the server.

from?: string

From nickname, used for NOTICE and PRIVMSG collectors.

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

Type declaration

Methods

  • Resolve the collector.

    Parameters

    • line: IIRCLine

      The line resolving to await

    Returns void

Generated using TypeDoc