Represents an image that can be used as an avatar. This can be a Buffer containing raw image data with a specified MIME type.

interface AvatarImage {
    data: Buffer;
    filename?: string;
    mimeType: string;
}

Properties

data: Buffer

The raw image data as a Buffer.

filename?: string

Optional filename for the image.

mimeType: string

The MIME type of the image (e.g., 'image/jpeg', 'image/png').