{"action":"reopened","number":152,"pull_request":{"url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/pulls/152","id":172597866,"html_url":"https://github.com/JsSucks/BetterDiscordApp/pull/152","diff_url":"https://github.com/JsSucks/BetterDiscordApp/pull/152.diff","patch_url":"https://github.com/JsSucks/BetterDiscordApp/pull/152.patch","issue_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/issues/152","number":152,"state":"open","locked":false,"title":"Refactor settings, add CSS/SCSS utilities to the plugin API and add automatic recompile of theme/custom SCSS","user":{"login":"samuelthomas2774","id":8474065,"avatar_url":"https://avatars2.githubusercontent.com/u/8474065?v=4","gravatar_id":"","url":"https://api.github.com/users/samuelthomas2774","html_url":"https://github.com/samuelthomas2774","followers_url":"https://api.github.com/users/samuelthomas2774/followers","following_url":"https://api.github.com/users/samuelthomas2774/following{/other_user}","gists_url":"https://api.github.com/users/samuelthomas2774/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelthomas2774/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelthomas2774/subscriptions","organizations_url":"https://api.github.com/users/samuelthomas2774/orgs","repos_url":"https://api.github.com/users/samuelthomas2774/repos","events_url":"https://api.github.com/users/samuelthomas2774/events{/privacy}","received_events_url":"https://api.github.com/users/samuelthomas2774/received_events","type":"User","site_admin":false},"body":"Internal changes to how settings are handled. Settings, categories and sets are more event-based and have a `setting-updated` event which is emitted when a setting is changed, and a `settings-updated` event which is the same as the `setting-updated` event but groups multiple changes into a single event:\r\n\r\n```js\r\n// In a plugin\r\nthis.settings.on('setting-updated', event => {\r\n    Logger.log(event.setting.id, 'was changed to', event.value);\r\n});\r\n```\r\n\r\nWhen internal settings, plugins and themes are loaded all sets, categories, settings and schemes are converted to SettingsSet, SettingsCategory, Setting and SettingsScheme objects.\r\n\r\nAlso adds all `Utils` functions, some `Modals` functions and a `CssUtils` object to the plugin API, which provides some functions for managing plugin styles:\r\n\r\n```js\r\nCssUtils.compileSass(scss [, options])\r\nCssUtils.getConfigAsSCSS(settingsset)\r\nCssUtils.injectStyle([id,] css)\r\nCssUtils.injectSass([id,] scss [, options])\r\nCssUtils.deleteStyle(id)\r\nCssUtils.deleteAllStyles()\r\n```","created_at":"2018-03-02T20:32:44Z","updated_at":"2018-03-03T23:36:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"90755bc5c17ba78227601b7fa41702da95b4b2b7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/pulls/152/commits","review_comments_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/pulls/152/comments","review_comment_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/issues/152/comments","statuses_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/statuses/91275f433237e4d8bb143c290a550210c869dc30","head":{"label":"samuelthomas2774:settings","ref":"settings","sha":"91275f433237e4d8bb143c290a550210c869dc30","user":{"login":"samuelthomas2774","id":8474065,"avatar_url":"https://avatars2.githubusercontent.com/u/8474065?v=4","gravatar_id":"","url":"https://api.github.com/users/samuelthomas2774","html_url":"https://github.com/samuelthomas2774","followers_url":"https://api.github.com/users/samuelthomas2774/followers","following_url":"https://api.github.com/users/samuelthomas2774/following{/other_user}","gists_url":"https://api.github.com/users/samuelthomas2774/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelthomas2774/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelthomas2774/subscriptions","organizations_url":"https://api.github.com/users/samuelthomas2774/orgs","repos_url":"https://api.github.com/users/samuelthomas2774/repos","events_url":"https://api.github.com/users/samuelthomas2774/events{/privacy}","received_events_url":"https://api.github.com/users/samuelthomas2774/received_events","type":"User","site_admin":false},"repo":{"id":118192285,"name":"BetterDiscordApp","full_name":"samuelthomas2774/BetterDiscordApp","owner":{"login":"samuelthomas2774","id":8474065,"avatar_url":"https://avatars2.githubusercontent.com/u/8474065?v=4","gravatar_id":"","url":"https://api.github.com/users/samuelthomas2774","html_url":"https://github.com/samuelthomas2774","followers_url":"https://api.github.com/users/samuelthomas2774/followers","following_url":"https://api.github.com/users/samuelthomas2774/following{/other_user}","gists_url":"https://api.github.com/users/samuelthomas2774/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelthomas2774/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelthomas2774/subscriptions","organizations_url":"https://api.github.com/users/samuelthomas2774/orgs","repos_url":"https://api.github.com/users/samuelthomas2774/repos","events_url":"https://api.github.com/users/samuelthomas2774/events{/privacy}","received_events_url":"https://api.github.com/users/samuelthomas2774/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/samuelthomas2774/BetterDiscordApp","description":"Better Discord App enhances Discord desktop app with new features.","fork":true,"url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp","forks_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/forks","keys_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/teams","hooks_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/hooks","issue_events_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/issues/events{/number}","events_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/events","assignees_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/assignees{/user}","branches_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/branches{/branch}","tags_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/tags","blobs_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/git/refs{/sha}","trees_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/statuses/{sha}","languages_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/languages","stargazers_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/stargazers","contributors_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/contributors","subscribers_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/subscribers","subscription_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/subscription","commits_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/commits{/sha}","git_commits_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/git/commits{/sha}","comments_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/comments{/number}","issue_comment_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/issues/comments{/number}","contents_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/contents/{+path}","compare_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/merges","archive_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/downloads","issues_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/issues{/number}","pulls_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/pulls{/number}","milestones_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/milestones{/number}","notifications_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/labels{/name}","releases_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/releases{/id}","deployments_url":"https://api.github.com/repos/samuelthomas2774/BetterDiscordApp/deployments","created_at":"2018-01-20T00:06:42Z","updated_at":"2018-02-13T05:15:57Z","pushed_at":"2018-03-03T23:36:27Z","git_url":"git://github.com/samuelthomas2774/BetterDiscordApp.git","ssh_url":"git@github.com:samuelthomas2774/BetterDiscordApp.git","clone_url":"https://github.com/samuelthomas2774/BetterDiscordApp.git","svn_url":"https://github.com/samuelthomas2774/BetterDiscordApp","homepage":null,"size":30419,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"JsSucks:master","ref":"master","sha":"d6cb8f74fe0de9d0b62e6e6ecb05ed4852e371b4","user":{"login":"JsSucks","id":35305493,"avatar_url":"https://avatars2.githubusercontent.com/u/35305493?v=4","gravatar_id":"","url":"https://api.github.com/users/JsSucks","html_url":"https://github.com/JsSucks","followers_url":"https://api.github.com/users/JsSucks/followers","following_url":"https://api.github.com/users/JsSucks/following{/other_user}","gists_url":"https://api.github.com/users/JsSucks/gists{/gist_id}","starred_url":"https://api.github.com/users/JsSucks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JsSucks/subscriptions","organizations_url":"https://api.github.com/users/JsSucks/orgs","repos_url":"https://api.github.com/users/JsSucks/repos","events_url":"https://api.github.com/users/JsSucks/events{/privacy}","received_events_url":"https://api.github.com/users/JsSucks/received_events","type":"Organization","site_admin":false},"repo":{"id":116984905,"name":"BetterDiscordApp","full_name":"JsSucks/BetterDiscordApp","owner":{"login":"JsSucks","id":35305493,"avatar_url":"https://avatars2.githubusercontent.com/u/35305493?v=4","gravatar_id":"","url":"https://api.github.com/users/JsSucks","html_url":"https://github.com/JsSucks","followers_url":"https://api.github.com/users/JsSucks/followers","following_url":"https://api.github.com/users/JsSucks/following{/other_user}","gists_url":"https://api.github.com/users/JsSucks/gists{/gist_id}","starred_url":"https://api.github.com/users/JsSucks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JsSucks/subscriptions","organizations_url":"https://api.github.com/users/JsSucks/orgs","repos_url":"https://api.github.com/users/JsSucks/repos","events_url":"https://api.github.com/users/JsSucks/events{/privacy}","received_events_url":"https://api.github.com/users/JsSucks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JsSucks/BetterDiscordApp","description":"Better Discord App enhances Discord desktop app with new features.","fork":true,"url":"https://api.github.com/repos/JsSucks/BetterDiscordApp","forks_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/forks","keys_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/teams","hooks_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/hooks","issue_events_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/issues/events{/number}","events_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/events","assignees_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/assignees{/user}","branches_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/branches{/branch}","tags_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/tags","blobs_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/git/refs{/sha}","trees_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/statuses/{sha}","languages_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/languages","stargazers_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/stargazers","contributors_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/contributors","subscribers_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/subscribers","subscription_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/subscription","commits_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/commits{/sha}","git_commits_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/git/commits{/sha}","comments_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/comments{/number}","issue_comment_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/issues/comments{/number}","contents_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/contents/{+path}","compare_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/merges","archive_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/downloads","issues_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/issues{/number}","pulls_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/pulls{/number}","milestones_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/milestones{/number}","notifications_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/labels{/name}","releases_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/releases{/id}","deployments_url":"https://api.github.com/repos/JsSucks/BetterDiscordApp/deployments","created_at":"2018-01-10T16:51:11Z","updated_at":"2018-02-22T22:30:17Z","pushed_at":"2018-03-03T01:48:01Z","git_url":"git://github.com/JsSucks/BetterDiscordApp.git","ssh_url":"git@github.com:JsSucks/BetterDiscordApp.git","clone_url":"https://github.com/JsSucks/BetterDiscordApp.git","svn_url":"https://github.com/JsSucks/BetterDiscordApp","homepage":null,"size":31479,"stargazers_count":10,"watchers_count":10,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":11,"open_issues":4,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JsSucks/BetterDiscordApp/pulls/152"},"html":{"href":"https://github.com/JsSucks/BetterDiscordApp/pull/152"},"issue":{"href":"https://api.github.com/repos/JsSucks/BetterDiscordApp/issues/152"},"comments":{"href":"https://api.github.com/repos/JsSucks/BetterDiscordApp/issues/152/comments"},"review_comments":{"href":"https://api.github.com/repos/JsSucks/BetterDiscordApp/pulls/152/comments"},"review_comment":{"href":"https://api.github.com/repos/JsSucks/BetterDiscordApp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JsSucks/BetterDiscordApp/pulls/152/commits"},"statuses":{"href":"https://api.github.com/repos/JsSucks/BetterDiscordApp/statuses/91275f433237e4d8bb143c290a550210c869dc30"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":2,"review_comments":0,"maintainer_can_modify":false,"commits":22,"additions":3179,"deletions":1402,"changed_files":61}}
{"actor":{"display_login":"samuelthomas2774"}}