From 5c24e69cf26c1cc3042f77b5384fd317b50e82c9 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 15 Sep 2018 09:54:00 -0400 Subject: Fix up the Sphinx strings causing warnings. --- discord/user.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'discord/user.py') 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 -- cgit v1.2.3