mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Support for avatar decorations
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com> Co-authored-by: owocado <24418520+owocado@users.noreply.github.com>
This commit is contained in:
@ -248,6 +248,22 @@ class User(Snowflake, Protocol):
|
||||
"""Optional[:class:`~discord.Asset`]: Returns an Asset that represents the user's avatar, if present."""
|
||||
raise NotImplementedError
|
||||
|
||||
@property
|
||||
def avatar_decoration(self) -> Optional[Asset]:
|
||||
"""Optional[:class:`~discord.Asset`]: Returns an Asset that represents the user's avatar decoration, if present.
|
||||
|
||||
.. versionadded:: 2.4
|
||||
"""
|
||||
raise NotImplementedError
|
||||
|
||||
@property
|
||||
def avatar_decoration_sku_id(self) -> Optional[int]:
|
||||
"""Optional[:class:`int`]: Returns an integer that represents the user's avatar decoration SKU ID, if present.
|
||||
|
||||
.. versionadded:: 2.4
|
||||
"""
|
||||
raise NotImplementedError
|
||||
|
||||
@property
|
||||
def default_avatar(self) -> Asset:
|
||||
""":class:`~discord.Asset`: Returns the default avatar for a given user."""
|
||||
|
Reference in New Issue
Block a user