Skip to content

Image Data API


image_data

ImageDataPart dataclass

Bases: DataModel


              flowchart TD
              scurrypy.api.image_data.ImageDataPart[ImageDataPart]
              scurrypy.core.model.DataModel[DataModel]

                              scurrypy.core.model.DataModel --> scurrypy.api.image_data.ImageDataPart
                


              click scurrypy.api.image_data.ImageDataPart href "" "scurrypy.api.image_data.ImageDataPart"
              click scurrypy.core.model.DataModel href "" "scurrypy.core.model.DataModel"
            

Represents Discord's data URI scheme for images.

path: str | None = None class-attribute instance-attribute

Path to image.

ImageAssetPart dataclass

Bases: DataModel


              flowchart TD
              scurrypy.api.image_data.ImageAssetPart[ImageAssetPart]
              scurrypy.core.model.DataModel[DataModel]

                              scurrypy.core.model.DataModel --> scurrypy.api.image_data.ImageAssetPart
                


              click scurrypy.api.image_data.ImageAssetPart href "" "scurrypy.api.image_data.ImageAssetPart"
              click scurrypy.core.model.DataModel href "" "scurrypy.core.model.DataModel"
            

Represents fields for creating an image asset.

filename: str | None = 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).