wohali / oauth2-discord-new

New Discord Provider for the OAuth 2.0 Client
MIT License
118 stars 22 forks source link

Can i do $user->getAyatar like you did with $user->getUsername ? #35

Closed yael16yo closed 2 years ago

yael16yo commented 2 years ago

I'd like to pin up user's avatar, and i tried to get this avatar by this code line :

see file discord avatar

$user->getId() actually works, but avatar doesn't, do you have any id about how i could get this ?

yael16yo commented 2 years ago

i'm not using printf, this is an old screen, but i use echo like i did for id. The problem is getAvatar

wohali commented 2 years ago

This library only provides OAuth setup. It doesn't directly support any of the rest of the Discord API.

If you want to roll your own interface, the best starting place is https://discord.com/developers/docs/reference , and specifically:

If you want to use a PHP library that has built in support for these types of things, try https://github.com/discord-php/DiscordPHP .