New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: avatar decorations #941
base: master
Are you sure you want to change the base?
Conversation
Co-Authored-By: Emre Terzioglu <50607143+EmreTech@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need updating according to discord/discord-api-docs#6464.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Untested, lgtm
The asset of the avatar decoration. | ||
""" | ||
|
||
__slots__ = ("user", "sku_id", "_asset", "_state") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_state
seems to be self.user._state
, not self._state
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good otherwise!
@@ -31,6 +35,51 @@ | |||
) | |||
|
|||
|
|||
class AvatarDecoration: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure to add this to api.rst
.
|
||
You can get this object via :meth:`User.avatar_decoration`. | ||
|
||
.. versionadded:: 2.7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.. versionadded:: 2.7 | |
.. versionadded:: 3.0 |
|
||
You can get the asset of the avatar decoration via :attr:`AvatarDecoration.asset`. | ||
|
||
.. versionadded:: 2.7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.. versionadded:: 2.7 | |
.. versionadded:: 3.0 |
Summary
#937 discord/discord-api-docs#6464
Checklist
task pyright
and fixed the relevant issues.