Asset¶
discord_http.asset module¶
- class discord_http.asset.Asset(*, state, url, key, animated=False)¶
Bases:
object
- Parameters:
state (DiscordAPI)
url (str)
key (str)
animated (bool)
- BASE = 'https://cdn.discordapp.com'¶
- PROXY = 'https://media.discordapp.net'¶
- is_animated() bool ¶
Whether the asset is animated or not.
- Return type:
- Returns:
Whether the asset is animated or not
- replace(*, size=<MISSING>, format=<MISSING>) Self ¶
Replace the asset with new values.
- Parameters:
size (int) – The size of the asset
format (AssetFormatTypes) – The format of the asset
- Return type:
Self
- Returns:
The new asset object