{"action":"created","issue":{"url":"https://api.github.com/repos/twitch-apis/twitch-js/issues/123","repository_url":"https://api.github.com/repos/twitch-apis/twitch-js","labels_url":"https://api.github.com/repos/twitch-apis/twitch-js/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/twitch-apis/twitch-js/issues/123/comments","events_url":"https://api.github.com/repos/twitch-apis/twitch-js/issues/123/events","html_url":"https://github.com/twitch-apis/twitch-js/issues/123","id":346774139,"node_id":"MDU6SXNzdWUzNDY3NzQxMzk=","number":123,"title":"Error while triggering event `EVENTS.MODE`","user":{"login":"Fyzu","id":6418302,"node_id":"MDQ6VXNlcjY0MTgzMDI=","avatar_url":"https://avatars1.githubusercontent.com/u/6418302?v=4","gravatar_id":"","url":"https://api.github.com/users/Fyzu","html_url":"https://github.com/Fyzu","followers_url":"https://api.github.com/users/Fyzu/followers","following_url":"https://api.github.com/users/Fyzu/following{/other_user}","gists_url":"https://api.github.com/users/Fyzu/gists{/gist_id}","starred_url":"https://api.github.com/users/Fyzu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fyzu/subscriptions","organizations_url":"https://api.github.com/users/Fyzu/orgs","repos_url":"https://api.github.com/users/Fyzu/repos","events_url":"https://api.github.com/users/Fyzu/events{/privacy}","received_events_url":"https://api.github.com/users/Fyzu/received_events","type":"User","site_admin":false},"labels":[{"id":773942455,"node_id":"MDU6TGFiZWw3NzM5NDI0NTU=","url":"https://api.github.com/repos/twitch-apis/twitch-js/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-01T21:22:18Z","updated_at":"2018-08-07T14:01:40Z","closed_at":"2018-08-07T14:01:40Z","author_association":"NONE","body":"## Expected behaviour\r\n\r\nNo errors\r\n\r\n## Actual behaviour\r\n\r\nError while triggering event `EVENTS.MODE`\r\n\r\n```\r\n/node_modules/twitch-js/src/Chat/index.js:377\r\n        this.channels[message.channel].userState.isModerator =\r\n        ^\r\nTypeError: Cannot set property 'isModerator' of undefined\r\n    at Chat.handleMessage (/node_modules/twitch-js/src/Chat/index.js:377:9)\r\n    at Client.emit (/node_modules/eventemitter3/index.js:181:35)\r\n    at /node_modules/twitch-js/src/Chat/Client.js:107:12\r\n```\r\n\r\n## Steps to reproduce\r\n\r\nTrigger event `EVENTS.MODE`\r\n\r\n## Your environment\r\n\r\n* Operating system(s): MacOS\r\n* TwitchJS version: 2.0.0-beta.6\r\n* NodeJS version: 8+\r\n"},"comment":{"url":"https://api.github.com/repos/twitch-apis/twitch-js/issues/comments/411066873","html_url":"https://github.com/twitch-apis/twitch-js/issues/123#issuecomment-411066873","issue_url":"https://api.github.com/repos/twitch-apis/twitch-js/issues/123","id":411066873,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTA2Njg3Mw==","user":{"login":"marcandrews","id":3518829,"node_id":"MDQ6VXNlcjM1MTg4Mjk=","avatar_url":"https://avatars1.githubusercontent.com/u/3518829?v=4","gravatar_id":"","url":"https://api.github.com/users/marcandrews","html_url":"https://github.com/marcandrews","followers_url":"https://api.github.com/users/marcandrews/followers","following_url":"https://api.github.com/users/marcandrews/following{/other_user}","gists_url":"https://api.github.com/users/marcandrews/gists{/gist_id}","starred_url":"https://api.github.com/users/marcandrews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcandrews/subscriptions","organizations_url":"https://api.github.com/users/marcandrews/orgs","repos_url":"https://api.github.com/users/marcandrews/repos","events_url":"https://api.github.com/users/marcandrews/events{/privacy}","received_events_url":"https://api.github.com/users/marcandrews/received_events","type":"User","site_admin":false},"created_at":"2018-08-07T14:01:40Z","updated_at":"2018-08-07T14:01:40Z","author_association":"COLLABORATOR","body":"Nice!"}}
{"actor":{"display_login":"marcandrews"}}