{"action":"created","issue":{"url":"https://api.github.com/repos/pencil/rechat/issues/26","labels_url":"https://api.github.com/repos/pencil/rechat/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/pencil/rechat/issues/26/comments","events_url":"https://api.github.com/repos/pencil/rechat/issues/26/events","html_url":"https://github.com/pencil/rechat/pull/26","id":103853293,"number":26,"title":"Feature - Chat badges for streamer, staff, admin, global mod, mod, turbo and subscribers","user":{"login":"tolgap","id":1763486,"avatar_url":"https://avatars.githubusercontent.com/u/1763486?v=3","gravatar_id":"","url":"https://api.github.com/users/tolgap","html_url":"https://github.com/tolgap","followers_url":"https://api.github.com/users/tolgap/followers","following_url":"https://api.github.com/users/tolgap/following{/other_user}","gists_url":"https://api.github.com/users/tolgap/gists{/gist_id}","starred_url":"https://api.github.com/users/tolgap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tolgap/subscriptions","organizations_url":"https://api.github.com/users/tolgap/orgs","repos_url":"https://api.github.com/users/tolgap/repos","events_url":"https://api.github.com/users/tolgap/events{/privacy}","received_events_url":"https://api.github.com/users/tolgap/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-08-29T14:07:49Z","updated_at":"2015-09-08T11:27:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pencil/rechat/pulls/26","html_url":"https://github.com/pencil/rechat/pull/26","diff_url":"https://github.com/pencil/rechat/pull/26.diff","patch_url":"https://github.com/pencil/rechat/pull/26.patch"},"body":"Shoutout to @goldbattle for providing some code to start this PR. See discussion in issue #20 on why I opened a new PR for this.\r\n\r\nThis PR introduces chat badges for Streamer, Staff, Admin, Global mod, Mod, Turbo and Subscribers.\r\n\r\nIt checks for the following properties of `messageData`:\r\n\r\n* If `from` matches `ReChat.Playback.channelName` => `broadcaster`\r\n* If `usertype` matches one of `mod`, `global_mod`, `admin`, `staff`\r\n* If `turbo` is `true`\r\n* If `subscriber` is `true`\r\n\r\nThe badges are constructed using `ReChat.Playback._buildBadge` so if badge styling needs to be updated, only `_buildBadge` needs to be edited."},"comment":{"url":"https://api.github.com/repos/pencil/rechat/issues/comments/138523559","html_url":"https://github.com/pencil/rechat/pull/26#issuecomment-138523559","issue_url":"https://api.github.com/repos/pencil/rechat/issues/26","id":138523559,"user":{"login":"tolgap","id":1763486,"avatar_url":"https://avatars.githubusercontent.com/u/1763486?v=3","gravatar_id":"","url":"https://api.github.com/users/tolgap","html_url":"https://github.com/tolgap","followers_url":"https://api.github.com/users/tolgap/followers","following_url":"https://api.github.com/users/tolgap/following{/other_user}","gists_url":"https://api.github.com/users/tolgap/gists{/gist_id}","starred_url":"https://api.github.com/users/tolgap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tolgap/subscriptions","organizations_url":"https://api.github.com/users/tolgap/orgs","repos_url":"https://api.github.com/users/tolgap/repos","events_url":"https://api.github.com/users/tolgap/events{/privacy}","received_events_url":"https://api.github.com/users/tolgap/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T11:27:20Z","updated_at":"2015-09-08T11:27:20Z","body":"@goldbattle Yeah you still have the issue of misaligned badges it seems. Unless that was sarcasm :shipit: . I'm going to adjust my screen resolution and play around with that, as yours seem to be 1080p, whereas mine is 1440p with a large PPI. It might affect the positioning of emotes."}}