Asset¶
discord_http.asset module¶
- class discord_http.asset.Asset(*, state, url, key, animated=False)¶
- Bases: - object- Represents a Discord asset (e.g. an image or video). - Parameters:
- state (DiscordAPI) 
- url (str) 
- key (str) 
- animated (bool) 
 
 - BASE = 'https://cdn.discordapp.com'¶
 - PROXY = 'https://media.discordapp.net'¶
 - 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