{"action":"created","issue":{"url":"https://api.github.com/repos/nicholastay/passport-discord/issues/13","repository_url":"https://api.github.com/repos/nicholastay/passport-discord","labels_url":"https://api.github.com/repos/nicholastay/passport-discord/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/nicholastay/passport-discord/issues/13/comments","events_url":"https://api.github.com/repos/nicholastay/passport-discord/issues/13/events","html_url":"https://github.com/nicholastay/passport-discord/issues/13","id":360110852,"node_id":"MDU6SXNzdWUzNjAxMTA4NTI=","number":13,"title":"Set Scopes","user":{"login":"owen-mills","id":30704531,"node_id":"MDQ6VXNlcjMwNzA0NTMx","avatar_url":"https://avatars2.githubusercontent.com/u/30704531?v=4","gravatar_id":"","url":"https://api.github.com/users/owen-mills","html_url":"https://github.com/owen-mills","followers_url":"https://api.github.com/users/owen-mills/followers","following_url":"https://api.github.com/users/owen-mills/following{/other_user}","gists_url":"https://api.github.com/users/owen-mills/gists{/gist_id}","starred_url":"https://api.github.com/users/owen-mills/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owen-mills/subscriptions","organizations_url":"https://api.github.com/users/owen-mills/orgs","repos_url":"https://api.github.com/users/owen-mills/repos","events_url":"https://api.github.com/users/owen-mills/events{/privacy}","received_events_url":"https://api.github.com/users/owen-mills/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-14T00:12:46Z","updated_at":"2018-09-25T10:46:40Z","closed_at":null,"author_association":"NONE","body":"Why is there no way to set scopes? Only bot permissions? This whole package is useless."},"comment":{"url":"https://api.github.com/repos/nicholastay/passport-discord/issues/comments/424295011","html_url":"https://github.com/nicholastay/passport-discord/issues/13#issuecomment-424295011","issue_url":"https://api.github.com/repos/nicholastay/passport-discord/issues/13","id":424295011,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDI5NTAxMQ==","user":{"login":"neromaki","id":3358416,"node_id":"MDQ6VXNlcjMzNTg0MTY=","avatar_url":"https://avatars1.githubusercontent.com/u/3358416?v=4","gravatar_id":"","url":"https://api.github.com/users/neromaki","html_url":"https://github.com/neromaki","followers_url":"https://api.github.com/users/neromaki/followers","following_url":"https://api.github.com/users/neromaki/following{/other_user}","gists_url":"https://api.github.com/users/neromaki/gists{/gist_id}","starred_url":"https://api.github.com/users/neromaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neromaki/subscriptions","organizations_url":"https://api.github.com/users/neromaki/orgs","repos_url":"https://api.github.com/users/neromaki/repos","events_url":"https://api.github.com/users/neromaki/events{/privacy}","received_events_url":"https://api.github.com/users/neromaki/received_events","type":"User","site_admin":false},"created_at":"2018-09-25T10:46:40Z","updated_at":"2018-09-25T10:46:40Z","author_association":"NONE","body":"Would've been pretty easy to just paste the example code instead of \"check the example server\":\r\n\r\n```\r\nvar scopes = ['identify', 'email', 'guilds', 'guilds.join'];\r\n\r\npassport.use(new Strategy({\r\n    clientID: '',\r\n    clientSecret: '',\r\n    callbackURL: 'http://localhost:5000/callback',\r\n    scope: scopes\r\n}, function(accessToken, refreshToken, profile, done) {\r\n    process.nextTick(function() {\r\n        return done(null, profile);\r\n    });\r\n}));\r\n```\r\n\r\nIs the relevant code @owen-mills, presumably you need to pass an array of 1 if using a single scope such as `authorize` or `email`"}}
{"actor":{"display_login":"neromaki"}}