-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
empty $guilds and $connections #14
Comments
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. 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 |
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, ._. <[email protected]<mailto:[email protected]>> wrote:
@Gibigbig<https://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 GitHub<#14 (comment)>, or mute the thread<https://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 <[email protected]<mailto:[email protected]>> 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 GitHub<#14 (comment)>, or mute the thread<https://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 <[email protected]<mailto:[email protected]>> wrote:
Does $user->getGuildsAttribute() return guilds?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#14 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AXEwdtvvFlsOWl_fe-0P05q3N18rPnPWks5r3hUsgaJpZM4M3zfB>.
|
The "$guilds" and "$connections" variables are empty
The text was updated successfully, but these errors were encountered: