Skip to content
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

Open
dot-underscore-dot opened this issue Apr 8, 2017 · 8 comments
Open

empty $guilds and $connections #14

dot-underscore-dot opened this issue Apr 8, 2017 · 8 comments

Comments

@dot-underscore-dot
Copy link

The "$guilds" and "$connections" variables are empty

@Gibigbig
Copy link

Gibigbig commented Apr 23, 2017

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.

@dot-underscore-dot
Copy link
Author

@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

@Gibigbig
Copy link

Gibigbig commented Apr 26, 2017 via email

@Mega-Mewthree
Copy link

In the auth screen, it listed all my guilds, but user->guilds was still empty.

@Gibigbig
Copy link

Gibigbig commented May 7, 2017 via email

@Mega-Mewthree
Copy link

I can't. Also, Parts/Guild.php looks incomplete.

@Mega-Mewthree
Copy link

Does $user->getGuildsAttribute() return guilds?

@Gibigbig
Copy link

Gibigbig commented May 7, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants