tmijs / tmi.js

💬 Javascript library for the Twitch Messaging Interface. (Twitch.tv)
https://tmijs.com
MIT License
1.54k stars 217 forks source link

Raided event missing tags and test #387

Closed AlcaDesign closed 4 years ago

AlcaDesign commented 4 years ago

The raid event was added as part of #320 but did not include the message tags. It includes data like badges, color, profile image URL, room ID, timestamp, and most importantly the login and user ID.

badges=bits/100
color=#FF0000
display-name=Raider
emotes=
flags=
id=00000000-0000-0000-0000-000000000000
login=raider
mod=0
msg-id=raid
msg-param-displayName=Raider
msg-param-login=raider
msg-param-profileImageURL=https://static-cdn.jtvnw.net/jtv_user_pictures/IMAGE_ID-profile_image-70x70.png
msg-param-viewerCount=6
room-id=987654321
subscriber=0
system-msg=6\\sraiders\\sfrom\\sRaider\\shave\\sjoined\\n!
tmi-sent-ts=1500000000000
turbo=0
user-id=123456789
user-type=

Also a test needs to be added

@badges=bits/100;color=#FF0000;display-name=Raider;emotes=;flags=;id=00000000-0000-0000-0000-000000000000;login=raider;mod=0;msg-id=raid;msg-param-displayName=Raider;msg-param-login=raider;msg-param-profileImageURL=https://static-cdn.jtvnw.net/jtv_user_pictures/IMAGE_ID-profile_image-70x70.png;msg-param-viewerCount=6;room-id=987654321;subscriber=0;system-msg=6\\sraiders\\sfrom\\sraider\\shave\\sjoined\\n!;tmi-sent-ts=1500000000000;turbo=0;user-id=123456789;user-type= :tmi.twitch.tv USERNOTICE #channel