Change PartialInviteGuild.icon_url_as to mimic Guild.icon_url_as
This commit is contained in:
		| @@ -155,9 +155,16 @@ class PartialInviteGuild: | |||||||
|         """:class:`Asset`: Returns the guild's icon asset.""" |         """:class:`Asset`: Returns the guild's icon asset.""" | ||||||
|         return self.icon_url_as() |         return self.icon_url_as() | ||||||
|      |      | ||||||
|     def icon_url_as(self, *, format='webp', size=1024): |     def is_icon_animated(self): | ||||||
|  |         """:class:`bool`: Returns True if the guild has an animated icon. | ||||||
|  |  | ||||||
|  |         .. versionadded:: 1.4 | ||||||
|  |         """ | ||||||
|  |         return bool(self.icon and self.icon.startswith('a_')) | ||||||
|  |  | ||||||
|  |     def icon_url_as(self, *, format=None, static_format='webp', size=1024): | ||||||
|         """The same operation as :meth:`Guild.icon_url_as`.""" |         """The same operation as :meth:`Guild.icon_url_as`.""" | ||||||
|         return Asset._from_guild_image(self._state, self.id, self.icon, 'icons', format=format, size=size) |         return Asset._from_guild_icon(self._state, self, format=format, static_format=static_format, size=size) | ||||||
|  |  | ||||||
|     @property |     @property | ||||||
|     def banner_url(self): |     def banner_url(self): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user