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

    Represents a Discord attachment.

    Index

    Constructors

    Properties

    attachment: string

    The URL or path of the attachment

    contentType: null | string = null

    MIME type of the attachment

    description: null | string = null

    Description (alt text) of the attachment

    duration: null | number = null

    Duration in seconds for audio/voice attachments.

    This will only be available if the attachment is the audio file from a voice message.

    ephemeral: boolean = false

    Whether this attachment is ephemeral

    flags?: Readonly<AttachmentFlagsBitField>

    Flags associated with the attachment

    height: null | number = null

    Height of the attachment if image/video, otherwise null

    id: string

    The unique ID of the attachment

    name: string

    The filename of the attachment

    proxyURL?: string

    Proxy URL of the attachment

    size?: number

    Size of the attachment in bytes

    title: null | string = null

    Title of the attachment if present.

    This will only be available if the attachment name contains special characters.

    url?: string

    URL of the attachment

    waveform: null | string = null

    Base64 waveform for voice message attachments.

    This will only be available if this attachment is the audio file from a voice message.

    width: null | number = null

    Width of the attachment if image/video, otherwise null

    Accessors

    Methods