I'm looking for information as to how the custom javascript interacts with Twitch chat IRC such as what messages it's receiving or the chat events. There doesn't seem to be any documentation as to how it works. For example: I can get the event CLEARCHAT but I can't see what messages were deleted Twitch side or what ID of the chat messages were deleted.
The following captures the clear message command in Twitch IRC
if (obj.detail.command === 'CLEARMSG') {
console.log('YES');
}
Apparently there's some sparce documentation from different sources but not a full knowledgebase which is really infuriating.