18e3d7c72b
this change is made to clarify that the previously-called Badge object is actually specialized for Twitch badges
66 lines
1.9 KiB
JSON
66 lines
1.9 KiB
JSON
{
|
|
"input": [
|
|
"msg = {",
|
|
" flags = c2.MessageFlag.System | c2.MessageFlag.Disabled,",
|
|
" id = 'foo-bar',",
|
|
" parse_time = 420000,",
|
|
" search_text = 'search',",
|
|
" message_text = 'message',",
|
|
" login_name = 'login',",
|
|
" display_name = 'display',",
|
|
" localized_name = 'local',",
|
|
" user_id = 'user-id',",
|
|
" username_color = 'blue',",
|
|
" server_received_time = 1230000,",
|
|
" highlight_color = '#12345678',",
|
|
" channel_name = 'channel',",
|
|
" elements = {",
|
|
" {",
|
|
" type = 'text',",
|
|
" text = 'aliens walking',",
|
|
" link = { type = c2.LinkType.UserInfo, value = 'twitchdev' }",
|
|
" }",
|
|
" }",
|
|
"}"
|
|
],
|
|
"output": {
|
|
"channelName": "channel",
|
|
"count": 1,
|
|
"displayName": "display",
|
|
"elements": [
|
|
{
|
|
"color": "Text",
|
|
"flags": "Text",
|
|
"link": {
|
|
"type": "UserInfo",
|
|
"value": "twitchdev"
|
|
},
|
|
"style": "ChatMedium",
|
|
"tooltip": "",
|
|
"trailingSpace": true,
|
|
"type": "TextElement",
|
|
"words": [
|
|
"aliens",
|
|
"walking"
|
|
]
|
|
}
|
|
],
|
|
"flags": "System|Disabled",
|
|
"frozen": false,
|
|
"highlightColor": "#12345678",
|
|
"id": "foo-bar",
|
|
"localizedName": "local",
|
|
"loginName": "login",
|
|
"messageText": "message",
|
|
"searchText": "search",
|
|
"serverReceivedTime": "1970-01-01T00:20:30Z",
|
|
"timeoutUser": "",
|
|
"twitchBadgeInfos": {
|
|
},
|
|
"twitchBadges": [
|
|
],
|
|
"userID": "user-id",
|
|
"usernameColor": "#ff0000ff"
|
|
}
|
|
}
|