crowbartools / MixrElixr

Browser extension that enhances your Mixer viewing experience with custom emotes, new features, and a ton of options.
https://mixrelixr.com
GNU General Public License v3.0
23 stars 7 forks source link

[Feature Request] Update mod actions with new info #102

Closed CrowbarToolsRobot closed 4 years ago

CrowbarToolsRobot commented 4 years ago

@ebiggz via Discord:

Mixer has updated the payload for the PurgeMessage chat event and we can now see which moderator banned the user or how long a user was timed out for.

Payload for timeout

{
 "moderator": {
 "user_name": "ebiggz",
 "user_id": 3853195,
 "user_roles": ["Owner"],
 "user_level": 113
 },
 "user_id": 114997149,
 "cause": {
 "type": "timeout",
 "durationString": "1m"
 }
}

Payload for ban

{
 "moderator": {
 "user_name": "ebiggz",
 "user_id": 3853195,
 "user_roles": ["Owner"],
 "user_level": 113
 },
 "user_id": 114997149,
 "cause": {
 "type": "ban"
 }
}