UNPKG

@thaunknown/web-irc

Version:

A TypeScript port of irc-framework's WebIRC client, without the bloat of unnceessary packages.

28 lines (27 loc) 1.14 kB
import { Duplex } from 'streamx'; export default class IrcChannel { ircClient: any; name: any; say: (...remainingArgs: any[]) => any; notice: (...remainingArgs: any[]) => any; part: (...remainingArgs: any[]) => any; join: (...remainingArgs: any[]) => any; mode: (...remainingArgs: any[]) => any; banlist: (...remainingArgs: any[]) => any; ban: (...remainingArgs: any[]) => any; unban: (...remainingArgs: any[]) => any; users: any[]; constructor(ircClient: any, channelName: any, key: any); /** * Relay messages between this channel to another * @param {IrcChannel|String} targetChan Target channel * @param {Object} opts Extra options * * opts may contain the following properties: * one_way (false) Only relay messages to target_chan, not the reverse * replay_nicks (true) Include the sending nick as part of the relayed message */ relay(targetChan: any, opts: any): void; stream(streamOpts: any): Duplex<any, any, any, any, true, true, import("streamx").DuplexEvents<any, any>>; updateUsers(cb: any): void; }