{"action":"created","issue":{"url":"https://api.github.com/repos/ByzantineFailure/BPM-for-Discord/issues/80","repository_url":"https://api.github.com/repos/ByzantineFailure/BPM-for-Discord","labels_url":"https://api.github.com/repos/ByzantineFailure/BPM-for-Discord/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/ByzantineFailure/BPM-for-Discord/issues/80/comments","events_url":"https://api.github.com/repos/ByzantineFailure/BPM-for-Discord/issues/80/events","html_url":"https://github.com/ByzantineFailure/BPM-for-Discord/issues/80","id":244816299,"number":80,"title":"Discord update broke one-click insertion of emotes","user":{"login":"Pazns","id":4493854,"avatar_url":"https://avatars3.githubusercontent.com/u/4493854?v=4","gravatar_id":"","url":"https://api.github.com/users/Pazns","html_url":"https://github.com/Pazns","followers_url":"https://api.github.com/users/Pazns/followers","following_url":"https://api.github.com/users/Pazns/following{/other_user}","gists_url":"https://api.github.com/users/Pazns/gists{/gist_id}","starred_url":"https://api.github.com/users/Pazns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pazns/subscriptions","organizations_url":"https://api.github.com/users/Pazns/orgs","repos_url":"https://api.github.com/users/Pazns/repos","events_url":"https://api.github.com/users/Pazns/events{/privacy}","received_events_url":"https://api.github.com/users/Pazns/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-22T01:50:38Z","updated_at":"2017-07-23T16:57:49Z","closed_at":"2017-07-23T16:57:49Z","body":"Since a recent Discord update (2017-07-20, I think ?), the way BPM gets the input textarea is broken and doesn't work at all.\r\n\r\nJust by looking at `bpm.js` release file, I see that the old way with `getElementsByClassName('channel-textarea-inner');` can't work since the identifier `channel-textarea-inner` doesn't exist anymore.\r\n\r\nI silly-tested things and found that searching `channel-text-area-default` makes it to work again.\r\nThis is the first textarea–parent class identifier that isn't some generated bullshit like `channelTextArea-1HTP3C`.\r\n\r\nNote that the automatic insertion is still somehow broken.\r\nUser must type something in the field for it to be able to send the emote auto-inserted.\r\nThere is probably an event triggering after user real input that BPM doesn't trigger by programmatically inserting text."},"comment":{"url":"https://api.github.com/repos/ByzantineFailure/BPM-for-Discord/issues/comments/317266717","html_url":"https://github.com/ByzantineFailure/BPM-for-Discord/issues/80#issuecomment-317266717","issue_url":"https://api.github.com/repos/ByzantineFailure/BPM-for-Discord/issues/80","id":317266717,"user":{"login":"ByzantineFailure","id":4991977,"avatar_url":"https://avatars1.githubusercontent.com/u/4991977?v=4","gravatar_id":"","url":"https://api.github.com/users/ByzantineFailure","html_url":"https://github.com/ByzantineFailure","followers_url":"https://api.github.com/users/ByzantineFailure/followers","following_url":"https://api.github.com/users/ByzantineFailure/following{/other_user}","gists_url":"https://api.github.com/users/ByzantineFailure/gists{/gist_id}","starred_url":"https://api.github.com/users/ByzantineFailure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ByzantineFailure/subscriptions","organizations_url":"https://api.github.com/users/ByzantineFailure/orgs","repos_url":"https://api.github.com/users/ByzantineFailure/repos","events_url":"https://api.github.com/users/ByzantineFailure/events{/privacy}","received_events_url":"https://api.github.com/users/ByzantineFailure/received_events","type":"User","site_admin":false},"created_at":"2017-07-23T16:57:49Z","updated_at":"2017-07-23T16:57:49Z","body":"Resolved via #82 "}}
{"actor":{"display_login":"ByzantineFailure"}}