Browse Source

Rename lingering _url Asset properties

pull/6776/head
Nadir Chowdhury 4 years ago
committed by GitHub
parent
commit
f4165755a9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      discord/invite.py
  2. 2
      discord/webhook/async_.py

2
discord/invite.py

@ -172,7 +172,7 @@ class PartialInviteGuild:
return snowflake_time(self.id)
@property
def icon_url(self) -> Optional[Asset]:
def icon(self) -> Optional[Asset]:
"""Optional[:class:`Asset`]: Returns the guild's icon asset, if available."""
if self._icon is None:
return None

2
discord/webhook/async_.py

@ -487,7 +487,7 @@ class PartialWebhookGuild(Hashable):
return f'<PartialWebhookGuild name={self.name!r} id={self.id}>'
@property
def icon_url(self) -> Optional[Asset]:
def icon(self) -> Optional[Asset]:
"""Optional[:class:`Asset`]: Returns the guild's icon asset, if available."""
if self._icon is None:
return None

Loading…
Cancel
Save