From 8d3b56206b48f0215bcb5be0e94c18afe7277975 Mon Sep 17 00:00:00 2001 From: JDJG Date: Wed, 7 Feb 2024 19:38:18 -0500 Subject: [PATCH] Update ClientUser.edit docs for animated avatars --- discord/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/user.py b/discord/user.py index b0ba869cb..2cffcee55 100644 --- a/discord/user.py +++ b/discord/user.py @@ -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 ------