mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-14 17:59:48 +00:00
Update ClientUser.edit docs for animated avatars
This commit is contained in:
parent
bd402b486c
commit
8d3b56206b
@ -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
|
||||
------
|
||||
|
Loading…
x
Reference in New Issue
Block a user