teamreflex / oauth2-discord

OAuth2 client for authenticating with the Discord API servers
MIT License
61 stars 26 forks source link

Class 'Discord\OAuth\Discord' not found #13

Closed dot-underscore-dot closed 7 years ago

dot-underscore-dot commented 7 years ago

code: $provider = new Discord\OAuth\Discord([ 'clientId' => 'CLIENTID', 'clientSecret' => 'CLIENTSECRET', 'redirectUri' => 'REDIRECTURI' `]); result: image

jaspervdm commented 7 years ago

You should actually load the class, either with the composer autoloader (vendor/autoload.php) or you could write your own.

stevemulligan commented 7 years ago

Something like this:

include join(DIRECTORY_SEPARATOR, [__DIR__, 'vendor', 'autoload.php']);

dot-underscore-dot commented 7 years ago

it works, thanks