{"action":"created","comment":{"url":"https://api.github.com/repos/GlitchLib/glitch/pulls/comments/237501083","pull_request_review_id":179813452,"id":237501083,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNzUwMTA4Mw==","diff_hunk":"@@ -18,22 +22,115 @@ public UserService(GlitchKraken rest) {\n         super(rest.getClient(), rest.getHttpClient());\n     }\n \n-    public Flux<User> getUser(String... users) {\n-        return getUsers(Arrays.asList(users));\n+    public Mono<AuthorizedUser> getUsers(Credential credential) {\n+        return Mono.just(checkRequiredScope(credential.getScopes(), Scope.USER_READ)).flatMap(b -> {\n+            if (b) {\n+                return exchange(get(\"/user\", AuthorizedUser.class).header(\"Authorization\", \"OAuth \" + credential.getAccessToken())).toMono();","path":"kraken/src/main/java/glitch/kraken/services/UserService.java","position":30,"original_position":30,"commit_id":"b65befbdeb751d9fe61c0d78018bc44d9cda6a3b","original_commit_id":"b65befbdeb751d9fe61c0d78018bc44d9cda6a3b","user":{"login":"codeclimate[bot]","id":36754821,"node_id":"MDM6Qm90MzY3NTQ4MjE=","avatar_url":"https://avatars0.githubusercontent.com/in/9403?v=4","gravatar_id":"","url":"https://api.github.com/users/codeclimate%5Bbot%5D","html_url":"https://github.com/apps/codeclimate","followers_url":"https://api.github.com/users/codeclimate%5Bbot%5D/followers","following_url":"https://api.github.com/users/codeclimate%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/codeclimate%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/codeclimate%5Bbot%5D/repos","events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/received_events","type":"Bot","site_admin":false},"body":"Define a constant instead of duplicating this literal \"OAuth \" 5 times.","created_at":"2018-11-29T14:13:06Z","updated_at":"2018-11-29T14:13:07Z","html_url":"https://github.com/GlitchLib/glitch/pull/26#discussion_r237501083","pull_request_url":"https://api.github.com/repos/GlitchLib/glitch/pulls/26","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/GlitchLib/glitch/pulls/comments/237501083"},"html":{"href":"https://github.com/GlitchLib/glitch/pull/26#discussion_r237501083"},"pull_request":{"href":"https://api.github.com/repos/GlitchLib/glitch/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/GlitchLib/glitch/pulls/26","id":234652086,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM0NjUyMDg2","html_url":"https://github.com/GlitchLib/glitch/pull/26","diff_url":"https://github.com/GlitchLib/glitch/pull/26.diff","patch_url":"https://github.com/GlitchLib/glitch/pull/26.patch","issue_url":"https://api.github.com/repos/GlitchLib/glitch/issues/26","number":26,"state":"open","locked":false,"title":"Release v0.3.0","user":{"login":"stachu540","id":359222,"node_id":"MDQ6VXNlcjM1OTIyMg==","avatar_url":"https://avatars2.githubusercontent.com/u/359222?v=4","gravatar_id":"","url":"https://api.github.com/users/stachu540","html_url":"https://github.com/stachu540","followers_url":"https://api.github.com/users/stachu540/followers","following_url":"https://api.github.com/users/stachu540/following{/other_user}","gists_url":"https://api.github.com/users/stachu540/gists{/gist_id}","starred_url":"https://api.github.com/users/stachu540/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stachu540/subscriptions","organizations_url":"https://api.github.com/users/stachu540/orgs","repos_url":"https://api.github.com/users/stachu540/repos","events_url":"https://api.github.com/users/stachu540/events{/privacy}","received_events_url":"https://api.github.com/users/stachu540/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-29T14:12:19Z","updated_at":"2018-11-29T14:13:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a2fd7d97b3fe30921d2aff7a1049e1d9718160de","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/GlitchLib/glitch/pulls/26/commits","review_comments_url":"https://api.github.com/repos/GlitchLib/glitch/pulls/26/comments","review_comment_url":"https://api.github.com/repos/GlitchLib/glitch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GlitchLib/glitch/issues/26/comments","statuses_url":"https://api.github.com/repos/GlitchLib/glitch/statuses/b65befbdeb751d9fe61c0d78018bc44d9cda6a3b","head":{"label":"GlitchLib:dev","ref":"dev","sha":"b65befbdeb751d9fe61c0d78018bc44d9cda6a3b","user":{"login":"GlitchLib","id":43017566,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzMDE3NTY2","avatar_url":"https://avatars2.githubusercontent.com/u/43017566?v=4","gravatar_id":"","url":"https://api.github.com/users/GlitchLib","html_url":"https://github.com/GlitchLib","followers_url":"https://api.github.com/users/GlitchLib/followers","following_url":"https://api.github.com/users/GlitchLib/following{/other_user}","gists_url":"https://api.github.com/users/GlitchLib/gists{/gist_id}","starred_url":"https://api.github.com/users/GlitchLib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GlitchLib/subscriptions","organizations_url":"https://api.github.com/users/GlitchLib/orgs","repos_url":"https://api.github.com/users/GlitchLib/repos","events_url":"https://api.github.com/users/GlitchLib/events{/privacy}","received_events_url":"https://api.github.com/users/GlitchLib/received_events","type":"Organization","site_admin":false},"repo":{"id":146582041,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY1ODIwNDE=","name":"glitch","full_name":"GlitchLib/glitch","private":false,"owner":{"login":"GlitchLib","id":43017566,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzMDE3NTY2","avatar_url":"https://avatars2.githubusercontent.com/u/43017566?v=4","gravatar_id":"","url":"https://api.github.com/users/GlitchLib","html_url":"https://github.com/GlitchLib","followers_url":"https://api.github.com/users/GlitchLib/followers","following_url":"https://api.github.com/users/GlitchLib/following{/other_user}","gists_url":"https://api.github.com/users/GlitchLib/gists{/gist_id}","starred_url":"https://api.github.com/users/GlitchLib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GlitchLib/subscriptions","organizations_url":"https://api.github.com/users/GlitchLib/orgs","repos_url":"https://api.github.com/users/GlitchLib/repos","events_url":"https://api.github.com/users/GlitchLib/events{/privacy}","received_events_url":"https://api.github.com/users/GlitchLib/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/GlitchLib/glitch","description":"Java API Wrapper for Twitch","fork":false,"url":"https://api.github.com/repos/GlitchLib/glitch","forks_url":"https://api.github.com/repos/GlitchLib/glitch/forks","keys_url":"https://api.github.com/repos/GlitchLib/glitch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GlitchLib/glitch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GlitchLib/glitch/teams","hooks_url":"https://api.github.com/repos/GlitchLib/glitch/hooks","issue_events_url":"https://api.github.com/repos/GlitchLib/glitch/issues/events{/number}","events_url":"https://api.github.com/repos/GlitchLib/glitch/events","assignees_url":"https://api.github.com/repos/GlitchLib/glitch/assignees{/user}","branches_url":"https://api.github.com/repos/GlitchLib/glitch/branches{/branch}","tags_url":"https://api.github.com/repos/GlitchLib/glitch/tags","blobs_url":"https://api.github.com/repos/GlitchLib/glitch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GlitchLib/glitch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GlitchLib/glitch/git/refs{/sha}","trees_url":"https://api.github.com/repos/GlitchLib/glitch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GlitchLib/glitch/statuses/{sha}","languages_url":"https://api.github.com/repos/GlitchLib/glitch/languages","stargazers_url":"https://api.github.com/repos/GlitchLib/glitch/stargazers","contributors_url":"https://api.github.com/repos/GlitchLib/glitch/contributors","subscribers_url":"https://api.github.com/repos/GlitchLib/glitch/subscribers","subscription_url":"https://api.github.com/repos/GlitchLib/glitch/subscription","commits_url":"https://api.github.com/repos/GlitchLib/glitch/commits{/sha}","git_commits_url":"https://api.github.com/repos/GlitchLib/glitch/git/commits{/sha}","comments_url":"https://api.github.com/repos/GlitchLib/glitch/comments{/number}","issue_comment_url":"https://api.github.com/repos/GlitchLib/glitch/issues/comments{/number}","contents_url":"https://api.github.com/repos/GlitchLib/glitch/contents/{+path}","compare_url":"https://api.github.com/repos/GlitchLib/glitch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GlitchLib/glitch/merges","archive_url":"https://api.github.com/repos/GlitchLib/glitch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GlitchLib/glitch/downloads","issues_url":"https://api.github.com/repos/GlitchLib/glitch/issues{/number}","pulls_url":"https://api.github.com/repos/GlitchLib/glitch/pulls{/number}","milestones_url":"https://api.github.com/repos/GlitchLib/glitch/milestones{/number}","notifications_url":"https://api.github.com/repos/GlitchLib/glitch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GlitchLib/glitch/labels{/name}","releases_url":"https://api.github.com/repos/GlitchLib/glitch/releases{/id}","deployments_url":"https://api.github.com/repos/GlitchLib/glitch/deployments","created_at":"2018-08-29T10:10:33Z","updated_at":"2018-11-22T01:24:12Z","pushed_at":"2018-11-29T14:12:20Z","git_url":"git://github.com/GlitchLib/glitch.git","ssh_url":"git@github.com:GlitchLib/glitch.git","clone_url":"https://github.com/GlitchLib/glitch.git","svn_url":"https://github.com/GlitchLib/glitch","homepage":"https://glitchlib.github.io/","size":654,"stargazers_count":7,"watchers_count":7,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":9,"watchers":7,"default_branch":"master"}},"base":{"label":"GlitchLib:master","ref":"master","sha":"571815ed277dcc97f38602a9f3e119840369abd2","user":{"login":"GlitchLib","id":43017566,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzMDE3NTY2","avatar_url":"https://avatars2.githubusercontent.com/u/43017566?v=4","gravatar_id":"","url":"https://api.github.com/users/GlitchLib","html_url":"https://github.com/GlitchLib","followers_url":"https://api.github.com/users/GlitchLib/followers","following_url":"https://api.github.com/users/GlitchLib/following{/other_user}","gists_url":"https://api.github.com/users/GlitchLib/gists{/gist_id}","starred_url":"https://api.github.com/users/GlitchLib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GlitchLib/subscriptions","organizations_url":"https://api.github.com/users/GlitchLib/orgs","repos_url":"https://api.github.com/users/GlitchLib/repos","events_url":"https://api.github.com/users/GlitchLib/events{/privacy}","received_events_url":"https://api.github.com/users/GlitchLib/received_events","type":"Organization","site_admin":false},"repo":{"id":146582041,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY1ODIwNDE=","name":"glitch","full_name":"GlitchLib/glitch","private":false,"owner":{"login":"GlitchLib","id":43017566,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzMDE3NTY2","avatar_url":"https://avatars2.githubusercontent.com/u/43017566?v=4","gravatar_id":"","url":"https://api.github.com/users/GlitchLib","html_url":"https://github.com/GlitchLib","followers_url":"https://api.github.com/users/GlitchLib/followers","following_url":"https://api.github.com/users/GlitchLib/following{/other_user}","gists_url":"https://api.github.com/users/GlitchLib/gists{/gist_id}","starred_url":"https://api.github.com/users/GlitchLib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GlitchLib/subscriptions","organizations_url":"https://api.github.com/users/GlitchLib/orgs","repos_url":"https://api.github.com/users/GlitchLib/repos","events_url":"https://api.github.com/users/GlitchLib/events{/privacy}","received_events_url":"https://api.github.com/users/GlitchLib/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/GlitchLib/glitch","description":"Java API Wrapper for Twitch","fork":false,"url":"https://api.github.com/repos/GlitchLib/glitch","forks_url":"https://api.github.com/repos/GlitchLib/glitch/forks","keys_url":"https://api.github.com/repos/GlitchLib/glitch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GlitchLib/glitch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GlitchLib/glitch/teams","hooks_url":"https://api.github.com/repos/GlitchLib/glitch/hooks","issue_events_url":"https://api.github.com/repos/GlitchLib/glitch/issues/events{/number}","events_url":"https://api.github.com/repos/GlitchLib/glitch/events","assignees_url":"https://api.github.com/repos/GlitchLib/glitch/assignees{/user}","branches_url":"https://api.github.com/repos/GlitchLib/glitch/branches{/branch}","tags_url":"https://api.github.com/repos/GlitchLib/glitch/tags","blobs_url":"https://api.github.com/repos/GlitchLib/glitch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GlitchLib/glitch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GlitchLib/glitch/git/refs{/sha}","trees_url":"https://api.github.com/repos/GlitchLib/glitch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GlitchLib/glitch/statuses/{sha}","languages_url":"https://api.github.com/repos/GlitchLib/glitch/languages","stargazers_url":"https://api.github.com/repos/GlitchLib/glitch/stargazers","contributors_url":"https://api.github.com/repos/GlitchLib/glitch/contributors","subscribers_url":"https://api.github.com/repos/GlitchLib/glitch/subscribers","subscription_url":"https://api.github.com/repos/GlitchLib/glitch/subscription","commits_url":"https://api.github.com/repos/GlitchLib/glitch/commits{/sha}","git_commits_url":"https://api.github.com/repos/GlitchLib/glitch/git/commits{/sha}","comments_url":"https://api.github.com/repos/GlitchLib/glitch/comments{/number}","issue_comment_url":"https://api.github.com/repos/GlitchLib/glitch/issues/comments{/number}","contents_url":"https://api.github.com/repos/GlitchLib/glitch/contents/{+path}","compare_url":"https://api.github.com/repos/GlitchLib/glitch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GlitchLib/glitch/merges","archive_url":"https://api.github.com/repos/GlitchLib/glitch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GlitchLib/glitch/downloads","issues_url":"https://api.github.com/repos/GlitchLib/glitch/issues{/number}","pulls_url":"https://api.github.com/repos/GlitchLib/glitch/pulls{/number}","milestones_url":"https://api.github.com/repos/GlitchLib/glitch/milestones{/number}","notifications_url":"https://api.github.com/repos/GlitchLib/glitch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GlitchLib/glitch/labels{/name}","releases_url":"https://api.github.com/repos/GlitchLib/glitch/releases{/id}","deployments_url":"https://api.github.com/repos/GlitchLib/glitch/deployments","created_at":"2018-08-29T10:10:33Z","updated_at":"2018-11-22T01:24:12Z","pushed_at":"2018-11-29T14:12:20Z","git_url":"git://github.com/GlitchLib/glitch.git","ssh_url":"git@github.com:GlitchLib/glitch.git","clone_url":"https://github.com/GlitchLib/glitch.git","svn_url":"https://github.com/GlitchLib/glitch","homepage":"https://glitchlib.github.io/","size":654,"stargazers_count":7,"watchers_count":7,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":9,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GlitchLib/glitch/pulls/26"},"html":{"href":"https://github.com/GlitchLib/glitch/pull/26"},"issue":{"href":"https://api.github.com/repos/GlitchLib/glitch/issues/26"},"comments":{"href":"https://api.github.com/repos/GlitchLib/glitch/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/GlitchLib/glitch/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/GlitchLib/glitch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GlitchLib/glitch/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/GlitchLib/glitch/statuses/b65befbdeb751d9fe61c0d78018bc44d9cda6a3b"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"codeclimate"}}