[key: MessageEventIndex]: (nick: MessageNick, who: string, message: Message) => void,
Shows that it should be text.
('message' + to) as MessageEventIndex, from, msgText, message);
[key: PartEventIndex]: (nick: MessageNick, who: string, message: Message) => void,
https://github.com/matrix-org/node-irc/blob/master/src/events.ts#L62
I believe
whoparameter should be namedtextsince it actually holds string that nick sends.https://node-irc.readthedocs.io/en/latest/API.html#'message#channel'
Shows that it should be text.
the actual code uses text as well:
https://github.com/matrix-org/node-irc/blob/master/src/irc.ts#L885
the part#message is also wrong:
whois actuallyreasonhttps://node-irc.readthedocs.io/en/latest/API.html#'part#channel'