Skip to content

Image Data API

Note

The following classes come from the scurrypy.parts.image_data module.


ImageDataPart dataclass

Bases: DataModel

Represents Discord's data URI scheme for images.

path: str = None class-attribute instance-attribute

Path to image.

to_dict


ImageAssetPart dataclass

Bases: DataModel

Represents fields for creating an image asset.

filename: str = None class-attribute instance-attribute

Name of the file.

content_type: str = field(init=False) class-attribute instance-attribute

Content type (internally set).

data: bytes = field(init=False) class-attribute instance-attribute

Binary data (internally set).

to_dict