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/guild.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/guild.py')
| -rw-r--r-- | discord/guild.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/discord/guild.py b/discord/guild.py index 46621e83..ed0d7c4c 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -688,10 +688,10 @@ class Guild(Hashable): name: str The new name of the guild. icon: bytes - A *bytes-like* object representing the icon. Only PNG/JPEG supported. + A :term:`py:bytes-like object` representing the icon. Only PNG/JPEG supported. Could be ``None`` to denote removal of the icon. splash: bytes - A *bytes-like* object representing the invite splash. + A :term:`py:bytes-like object` representing the invite splash. Only PNG/JPEG supported. Could be ``None`` to denote removing the splash. Only available for partnered guilds with ``INVITE_SPLASH`` feature. @@ -987,7 +987,7 @@ class Guild(Hashable): return result async def create_custom_emoji(self, *, name, image, roles=None, reason=None): - """|coro| + r"""|coro| Creates a custom :class:`Emoji` for the guild. @@ -1003,10 +1003,10 @@ class Guild(Hashable): name: str The emoji name. Must be at least 2 characters. image: bytes - The *bytes-like* object representing the image data to use. + The :term:`py:bytes-like object` representing the image data to use. Only JPG and PNG images are supported. roles: Optional[list[:class:`Role`]] - A :class:`list` of :class:`Role`s that can use this emoji. Leave empty to make it available to everyone. + A :class:`list` of :class:`Role`\s that can use this emoji. Leave empty to make it available to everyone. reason: Optional[str] The reason for creating this emoji. Shows up on the audit log. |