issues
search
Phineas
/
lanyard
🏷️   Expose your Discord presence and activities to a RESTful API and WebSocket in less than 10 seconds
https://discord.gg/lanyard
MIT License
967
stars
143
forks
source link
Update discord_cdn.ex
#205
Closed
MrShadowDev
closed
1 year ago
MrShadowDev
commented
1 year ago
Added type specifications to functions for clarity and readability.
Extracted the logic for constructing the constructed CDN URL into a separate function for better separation of concerns.
Used pattern matching with a guard clause in the get_proxied_avatar/4 function instead of an if statement for readability.
Used the pipe operator to simplify the code and make it more readable.