import { getIRCChannelName } from "../irc/channel-irc-message" ; import { IRCMessage , IRCMessageData , requireParameter , } from "../irc/irc-message" ; import { tagParserFor } from "../parser/tag-values" ; export class NoticeMessage extends IRCMessage { public readonly channelName : string | undefined ; public readonly messageText : string ; public readonly messageID : string | undefined ; public constructor ( message ) { super ( message ) ; this . channelName = getIRCChannelName ( this , true ) ; const tagParser = tagParserFor ( this . ircTags ) ; this . messageText = requireParameter ( this , 1 ) ; this . messageID = tagParser . getString ( "msg-id" ) ; } }