edgeport - v1.0.6
    Preparing search index...

    Function isChannelName

    • Tests whether a target name is a channel (starts with one of CHANNEL_PREFIXES).

      Parameters

      • target: string

        A PRIVMSG/NOTICE target (channel or nick).

      Returns boolean

      True when target names a channel rather than a user.

      1.0.4

      import { isChannelName } from 'edgeport/irc';

      isChannelName('#ops'); // true
      isChannelName('alice'); // false