Closed poyrazhancilar closed 5 years ago
Before this post (https://github.com/wohali/oauth2-discord-new/issues/14) I tried this code: $avatar = "https://cdn.discordapp.com/avatars/" . $user->getId() . "/" . $user->getAvatar() . ".png";
$avatar = "https://cdn.discordapp.com/avatars/" . $user->getId() . "/" . $user->getAvatar() . ".png";
But I get this errors:
[23-Oct-2018 19:43:03 Europe/Istanbul] PHP Fatal error: Uncaught Error: Call to undefined method Wohali\OAuth2\Client\Provider\DiscordResourceOwner::getAvatar() in /home/gameuxst/discordbotlist.gameuxst.com/login.php:58 Stack trace:
thrown in /home/gameuxst/discordbotlist.gameuxst.com/login.php on line 58
Please help, thanks :)
I did it thanks.
Before this post (https://github.com/wohali/oauth2-discord-new/issues/14) I tried this code:
$avatar = "https://cdn.discordapp.com/avatars/" . $user->getId() . "/" . $user->getAvatar() . ".png";
But I get this errors:
[23-Oct-2018 19:43:03 Europe/Istanbul] PHP Fatal error: Uncaught Error: Call to undefined method Wohali\OAuth2\Client\Provider\DiscordResourceOwner::getAvatar() in /home/gameuxst/discordbotlist.gameuxst.com/login.php:58 Stack trace:
0 {main}
thrown in /home/gameuxst/discordbotlist.gameuxst.com/login.php on line 58
Please help, thanks :)