diff options
| author | Rapptz <[email protected]> | 2018-09-15 09:54:00 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-09-15 09:54:00 -0400 |
| commit | 5c24e69cf26c1cc3042f77b5384fd317b50e82c9 (patch) | |
| tree | b5b8a0de427dd1613e7cd61a1825ab173524e380 /discord/user.py | |
| parent | Add support for Discord's slow mode. (diff) | |
| download | discord.py-5c24e69cf26c1cc3042f77b5384fd317b50e82c9.tar.xz discord.py-5c24e69cf26c1cc3042f77b5384fd317b50e82c9.zip | |
Fix up the Sphinx strings causing warnings.
Diffstat (limited to 'discord/user.py')
| -rw-r--r-- | discord/user.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/discord/user.py b/discord/user.py index 3fa5090d..eb9289bb 100644 --- a/discord/user.py +++ b/discord/user.py @@ -323,10 +323,10 @@ class ClientUser(BaseUser): Note ----- - To upload an avatar, a *bytes-like object* must be passed in that + To upload an avatar, a :term:`py:bytes-like object` must be passed in that represents the image being uploaded. If this is done through a file then the file must be opened via ``open('some_filename', 'rb')`` and - the *bytes-like object* is given through the use of ``fp.read()``. + 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. @@ -341,14 +341,14 @@ class ClientUser(BaseUser): email: str The new email you wish to change to. Only applicable to user accounts. - Optional[:class:`HypeSquadHouse`] + house: Optional[:class:`HypeSquadHouse`] The hypesquad house you wish to change to. Could be ``None`` to leave the current house. Only applicable to user accounts. username :str The new username you wish to change to. avatar: bytes - A *bytes-like object* representing the image to upload. + A :term:`py:bytes-like object` representing the image to upload. Could be ``None`` to denote no avatar. Raises |