JakyeRU / Larascord

Larascord is a package that allows you to authenticate users in your Laravel application using Discord.
https://larascord.jakye.me
MIT License
67 stars 14 forks source link

[FEATURE] #115

Closed DamoFD closed 1 year ago

DamoFD commented 1 year ago

Is your feature request related to a problem? Please describe. Easier way to fetch images

Describe the solution you'd like Currently, an image src tag for users and guilds looks something like this: "https://cdn.discordapp.com/avatars/" . Auth()->user()->id . "/" . Auth()->user()->avatar . ".png" }}"

I feel having a trait for guild icons and user avatars would be beneficial so that an src would be: Auth()->user()->getAvatar()

With some parameters for size, image type, and color for the default discord logo if the user has no profile picture

Additional context If you feel like this would be a good feature, I'll work on a PR 👍

JakyeRU commented 1 year ago

Hello,

Yes, it would be great if you could add this feature! 👍