-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This introduces the new dev.kord.core.entity.Asset class that is a replacement for dev.kord.core.entity.Icon with coverage of more CDN endpoints and fewer inconsistencies (e.g. format was not considered when calling Icon.getImage() with no parameters). Properties with type Icon are now also deprecated and are replaced with similar properties with type Asset. This means there are a few source- (but not binary-) incompatible changes: * The types of dev.kord.core.entity.GuildEmoji.image, dev.kord.core.entity.Member.memberAvatar, dev.kord.core.entity.Role.icon, dev.kord.core.entity.User.avatar and dev.kord.core.entity.User.defaultAvatar were changed from Icon to Asset. * The type of dev.kord.core.entity.Team.icon was changed from String to Asset. Team.iconHash provides the previous functionality. --------- Co-authored-by: Lukellmann <[email protected]>
- Loading branch information
1 parent
d3b1312
commit 8c77dd9
Showing
17 changed files
with
335 additions
and
18 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
Oops, something went wrong.