privateMessage

Receive a notification when a private message is sent or received.
Includes message, broadcaster, and user objects.

Note

There is a separate notification for public chat messages.

Example Output

{
  "message": {
    "color": "",
    "toUser": "testuser",
    "bgColor": null,
    "fromUser": "testuser1",
    "message": "hello",
    "font": "default",
  },
  "broadcaster": "testuser",
  "user": {
    "username": "testuser1",
    "inFanclub": false,
    "gender": "m",
    "hasTokens": true,
    "recentTips": "none",
    "isMod": false
  }
}