Open dot-underscore-dot opened 7 years ago
Seems the default scopes are only identity and email from getDefaultScopes() in the /src/Discord/Discord.php file.
If you add on the scopes, guilds and connections, there, the url changes. Also you can modify the url directly with str_replace to include the scopes, which is better if youre running multiple bots with different permission needs from the same lib.
I have yet to figure out how to specify which scope to use. The api for this plug is as shitty/sparse as they come.
@Gibigbig i didn't use the default scopes. To set the scopes, i did $provider->getAuthorizationUrl(array( "scope" =>[insert scopes here]))
but it's still empty
I don't think it works. I'm using nodejs now because there's more support for it
Sent from my iPhone
On 25 Apr 2017, at 12:02 PM, ._. notifications@github.com<mailto:notifications@github.com> wrote:
@Gibigbighttps://github.com/Gibigbig i didn't use the default scopes. To set the scopes, i did $provider->getAuthorizationUrl(array( "scope" =>[insert scopes here])) but it's still empty
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/teamreflex/oauth2-discord/issues/14#issuecomment-297096518, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AXEwdvtpvBkO2xTWqy6NCm7O4SIpvNPeks5rzicEgaJpZM4M3zfB.
In the auth screen, it listed all my guilds, but user->guilds was still empty.
Use node ja instead. I switched. It's much easier
Sent from my iPhone
On 7 May 2017, at 1:37 PM, Mega-Mewthree notifications@github.com<mailto:notifications@github.com> wrote:
In the auth screen, it listed all my guilds, but user->guilds was still empty.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/teamreflex/oauth2-discord/issues/14#issuecomment-299725609, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AXEwdobVctBvZSiOcOao6pCXKJE1f_Rjks5r3g98gaJpZM4M3zfB.
I can't. Also, Parts/Guild.php looks incomplete.
Does $user->getGuildsAttribute() return guilds?
Look at the last update. It's ages go, and I hear this plugin no longer works with oauth2 rules. Maybe that's why plugins is broken.
It doesn't even return guilds and connections when you dump the entire user variable.
Try doing the post request etc yourself. That's all you really need from discord
Sent from my iPhone
On 7 May 2017, at 2:02 PM, Mega-Mewthree notifications@github.com<mailto:notifications@github.com> wrote:
Does $user->getGuildsAttribute() return guilds?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/teamreflex/oauth2-discord/issues/14#issuecomment-299727101, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AXEwdtvvFlsOWl_fe-0P05q3N18rPnPWks5r3hUsgaJpZM4M3zfB.
The "$guilds" and "$connections" variables are empty