Discord.https - v3.0.16
    Preparing search index...

    Payload for creating or sending an attachment.

    interface AttachmentPayload {
        attachment:
            | string
            | Buffer<ArrayBufferLike>
            | Uint8Array<ArrayBufferLike>;
        description?: string;
        duration?: number;
        name?: string;
        title?: string;
        waveform?: string;
    }
    Index

    Properties

    attachment: string | Buffer<ArrayBufferLike> | Uint8Array<ArrayBufferLike>

    The attachment data (file path, Buffer, or base64 string)

    description?: string

    Optional description (alt text)

    duration?: number

    Duration in seconds for audio/voice attachments

    name?: string

    Optional name of the attachment

    title?: string

    Optional title for the attachment

    waveform?: string

    Base64 encoded waveform for voice messages