Asset

class Asset(url: str, animated: bool)

Bases: object

Represents a Discord CDN Asset.

Parameters:
  • url (str) – The URL of the Asset.

  • animated (bool) – Represents if an Asset is animated.

CDN_URL = 'https://cdn.discordapp.com'

The base CDN URL.

url: str

The URL of the Asset.

animated: bool

Represents if an Asset is animated.

class MediaProxyAsset(url: str)

Bases: object

Represents a discord MediaProxyAsset.

Parameters:

url (str) – The URL of the Asset.

MEDIA_URL = 'https://media.discordapp.net'

The base URL.

url: str

The URL of the Asset.