Skip to content

Commit

Permalink
docs: update supported image formats for bot avatars (#1157)
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftinv authored Feb 13, 2024
1 parent a74e672 commit 4702223
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions disnake/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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`.
Expand Down

0 comments on commit 4702223

Please sign in to comment.