Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(GuildMember): add per-guild avatars
I opted by only adding the avatar property and the avatarURL function, as the display avatar will either be the server avatar or the user's displayavatar. If it makes it easier for development though, I can add the displayAvatarURL() function from User to GuildMember. types(GuildMember): add avatar and avatarURL() feat(GuildMember): add displayAvatarURL() Also changed user -> member in the jsdocs types(GuildMember): add displayAvatarURL() Remove empty line fix(GuildMember): fixed GuildAvatar format types(Cdn): add GuildAvatar and AllowedImageSize types Decided to specify the allowed image sizes in a type declaration since "number" was inaccurate. Also for some reason husky wouldn't let me commit this as types(CDN) or types(cdn) types(Cdn): fix format type fix(GuildMember): rename GuildAvatar => GuildMemberAvatar docs(GuildMember): link to User#displayAvatarURL types(GuildMember): add AllowedImageSize back fix(cdn): consistent casing of ID fix(cdn): forgot to change these types(Cdn): remove redundant image URL options feat(GuildMember): add avatar to .equals() feat(User): add avatar to toJSON() Co-Authored-By: Shubham Parihar <shubhamparihar391@gmail.com>
- Loading branch information
Showing
3 changed files
with
86 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters