import { IRCMessage , IRCMessageData , requireParameter , } from "../irc/irc-message" ; export class CapMessage extends IRCMessage { public readonly subCommand : string ; public readonly capabilities : string [ ] ; public constructor ( message ) { super ( message ) ; this . subCommand = requireParameter ( this , 1 ) ; this . capabilities = requireParameter ( this , 2 ) . split ( " " ) ; } }