From 4fb54c302fa77f47137efc13654e24f1ef537fcd Mon Sep 17 00:00:00 2001 From: shiftinv Date: Tue, 13 Feb 2024 18:06:27 +0100 Subject: [PATCH] docs: update supported image formats for bot avatars --- disnake/user.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/disnake/user.py b/disnake/user.py index 4326016100..72fb5a58c6 100644 --- a/disnake/user.py +++ b/disnake/user.py @@ -365,13 +365,6 @@ async def edit( Edits the current profile of the client. - .. note:: - - To upload an avatar, a resource (see below) or a :term:`py:bytes-like object` - must be passed in that represents the image being uploaded. - - The only image formats supported for uploading are JPG and PNG. - .. versionchanged:: 2.0 The edit is no longer in-place, instead the newly edited client user is returned. @@ -386,6 +379,8 @@ async def edit( A :term:`py:bytes-like object` or asset representing the image to upload. Could be ``None`` to denote no avatar. + Only JPG, PNG, WEBP (static), and GIF (static/animated) images are supported. + .. versionchanged:: 2.5 Now accepts various resource types in addition to :class:`bytes`.