JDA icon indicating copy to clipboard operation
JDA copied to clipboard

Adds support for user's avatar decorations

Open ItsTheSky opened this issue 9 months ago • 5 comments

Pull Request Etiquette

Changes

  • [X] Internal code
  • [X] Library interface (affecting end-user code)
  • [X] Documentation
  • [ ] Other: _____

Closes Issue: NaN

Description

Adds support for the user's decoration avatar. Discord docs are outdated about the user's object, check this PR for the "updated" endpoints.

It's my first PR there, hope I did not break anything 😓

ItsTheSky avatar Apr 27 '24 21:04 ItsTheSky

avatar_decoration_data is also available on Members, please add Member#getAvatarDecoration as well as Member#getEffectiveAvatarDecoration

freya022 avatar May 04 '24 12:05 freya022

Do I use the same object present in User for adding support in Member?

ItsTheSky avatar May 05 '24 11:05 ItsTheSky

Yes, same object, but stored on the member, just like any member profile element that's also present on an user

freya022 avatar May 05 '24 11:05 freya022

As Member and User have a decoration, might as well make AvatarDecoration be its own class, outside of User

freya022 avatar May 05 '24 21:05 freya022

@ItsTheSky what is the status here?

DV8FromTheWorld avatar Aug 21 '24 13:08 DV8FromTheWorld