import { IRCMessage } from "../message/irc/irc-message" ; import { NoticeMessage } from "../message/twitch-types/notice" ; export function matchingNotice ( channelName , noticeIDs ) { return ( msg ) => { return ( msg instanceof NoticeMessage && msg . channelName === channelName && noticeIDs . includes ( msg . messageID ! ) ) ; } ; }