Browse Source

fix doc strings for version added

pull/10322/head
Sacul 2 weeks ago
committed by GitHub
parent
commit
8e8c820a6f
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      discord/member.py

3
discord/member.py

@ -890,15 +890,18 @@ class Member(discord.abc.Messageable, _UserTag):
A :term:`py:bytes-like object` representing the image to upload. Could be ``None`` to denote no avatar. 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. Only image formats supported for uploading are JPEG, PNG, GIF, and WEBP.
This can only be set when editing the bot's own member. This can only be set when editing the bot's own member.
.. versionadded:: 2.7 .. versionadded:: 2.7
banner: Optional[:class:`bytes`] banner: Optional[:class:`bytes`]
A :term:`py:bytes-like object` representing the image to upload. Could be ``None`` to denote no banner. A :term:`py:bytes-like object` representing the image to upload. Could be ``None`` to denote no banner.
Only image formats supported for uploading are JPEG, PNG, GIF and WEBP.. Only image formats supported for uploading are JPEG, PNG, GIF and WEBP..
This can only be set when editing the bot's own member. This can only be set when editing the bot's own member.
.. versionadded:: 2.7 .. versionadded:: 2.7
bio: Optional[:class:`str`] bio: Optional[:class:`str`]
The new bio for the member. Use ``None`` to remove the bio. The new bio for the member. Use ``None`` to remove the bio.
This can only be set when editing the bot's own member. This can only be set when editing the bot's own member.
.. versionadded:: 2.7 .. versionadded:: 2.7
reason: Optional[:class:`str`] reason: Optional[:class:`str`]

Loading…
Cancel
Save