Browse Source

Fix stray colon in Asset related docstrings

pull/2203/head
Rapptz 6 years ago
parent
commit
fcf02414fe
  1. 4
      discord/guild.py
  2. 4
      discord/user.py
  3. 4
      discord/webhook.py

4
discord/guild.py

@ -500,7 +500,7 @@ class Guild(Hashable):
return self.banner_url_as() return self.banner_url_as()
def banner_url_as(self, *, format='webp', size=2048): def banner_url_as(self, *, format='webp', size=2048):
"""Returns a :class:`Asset`: for the guild's banner. """Returns a :class:`Asset` for the guild's banner.
The format must be one of 'webp', 'jpeg', or 'png'. The The format must be one of 'webp', 'jpeg', or 'png'. The
size must be a power of 2 between 16 and 4096. size must be a power of 2 between 16 and 4096.
@ -530,7 +530,7 @@ class Guild(Hashable):
return self.splash_url_as() return self.splash_url_as()
def splash_url_as(self, *, format='webp', size=2048): def splash_url_as(self, *, format='webp', size=2048):
"""Returns a :class:`Asset`: for the guild's invite splash. """Returns a :class:`Asset` for the guild's invite splash.
The format must be one of 'webp', 'jpeg', 'jpg', or 'png'. The The format must be one of 'webp', 'jpeg', 'jpg', or 'png'. The
size must be a power of 2 between 16 and 4096. size must be a power of 2 between 16 and 4096.

4
discord/user.py

@ -114,7 +114,7 @@ class BaseUser(_BaseUser):
@property @property
def avatar_url(self): def avatar_url(self):
"""Returns a :class:`Asset`: for the avatar the user has. """Returns a :class:`Asset` for the avatar the user has.
If the user does not have a traditional avatar, an asset for If the user does not have a traditional avatar, an asset for
the default avatar is returned instead. the default avatar is returned instead.
@ -129,7 +129,7 @@ class BaseUser(_BaseUser):
return bool(self.avatar and self.avatar.startswith('a_')) return bool(self.avatar and self.avatar.startswith('a_'))
def avatar_url_as(self, *, format=None, static_format='webp', size=1024): def avatar_url_as(self, *, format=None, static_format='webp', size=1024):
"""Returns a :class:`Asset`: for the avatar the user has. """Returns a :class:`Asset` for the avatar the user has.
If the user does not have a traditional avatar, an asset for If the user does not have a traditional avatar, an asset for
the default avatar is returned instead. the default avatar is returned instead.

4
discord/webhook.py

@ -523,7 +523,7 @@ class Webhook:
@property @property
def avatar_url(self): def avatar_url(self):
"""Returns a :class:`Asset`: for the avatar the webhook has. """Returns a :class:`Asset` for the avatar the webhook has.
If the webhook does not have a traditional avatar, an asset for If the webhook does not have a traditional avatar, an asset for
the default avatar is returned instead. the default avatar is returned instead.
@ -534,7 +534,7 @@ class Webhook:
return self.avatar_url_as() return self.avatar_url_as()
def avatar_url_as(self, *, format=None, size=1024): def avatar_url_as(self, *, format=None, size=1024):
"""Returns a :class:`Asset`: for the avatar the webhook has. """Returns a :class:`Asset` for the avatar the webhook has.
If the webhook does not have a traditional avatar, an asset for If the webhook does not have a traditional avatar, an asset for
the default avatar is returned instead. the default avatar is returned instead.

Loading…
Cancel
Save