Represents an attachment in a message, such as a file, image, or media.

Constructors

  • Constructs a new Attachments object.

    Parameters

    • client: Client

      The client instance managing this attachment.

    • data: any

      The raw data from the API representing the attachment.

    Returns Attachment

Properties

content_type?: string
description?: string
duration_secs?: number
ephemeral?: boolean
filename: string
flags?: number
height?: number
id: string
proxy_url: string
size: number
title?: string
url: string
waveform?: string
width?: number