1
0
mirror of https://github.com/Rapptz/discord.py.git synced 2025-05-14 01:40:02 +00:00

Update ClientUser.edit docs for animated avatars

This commit is contained in:
JDJG 2024-02-07 19:38:18 -05:00 committed by GitHub
parent bd402b486c
commit 8d3b56206b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -410,7 +410,6 @@ class ClientUser(BaseUser):
then the file must be opened via ``open('some_filename', 'rb')`` and
the :term:`py:bytes-like object` is given through the use of ``fp.read()``.
The only image formats supported for uploading is JPEG and PNG.
.. versionchanged:: 2.0
The edit is no longer in-place, instead the newly edited client user is returned.
@ -426,6 +425,7 @@ class ClientUser(BaseUser):
avatar: Optional[:class:`bytes`]
A :term:`py:bytes-like object` representing the image to upload.
Could be ``None`` to denote no avatar.
Only image formats supported for uploading are JPEG, PNG, GIF, and WEBP.
Raises
------