mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Change Message.application type to MessageApplication
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
This commit is contained in:
@ -254,6 +254,17 @@ class Asset(AssetMixin):
|
||||
animated=False,
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def _from_app_icon(
|
||||
cls, state: _State, object_id: int, icon_hash: str, asset_type: Literal['icon', 'cover_image']
|
||||
) -> Self:
|
||||
return cls(
|
||||
state,
|
||||
url=f'{cls.BASE}/app-icons/{object_id}/{asset_type}.png?size=1024',
|
||||
key=icon_hash,
|
||||
animated=False,
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def _from_cover_image(cls, state: _State, object_id: int, cover_image_hash: str) -> Self:
|
||||
return cls(
|
||||
|
Reference in New Issue
Block a user