export class AttachmentRepresents an attachment
The media (MIME) type of this attachment
See also: https://developer.mozilla.org/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
The duration of this attachment in seconds This will only be available if the attachment is an audio file.
ephemeral : boolean
Whether this attachment is ephemeral
flags : AttachmentFlagsBitField
The flags of this attachment
id : Snowflake
The attachment's id
name : string
The name of this attachment
proxyURL : string
The Proxy URL to this attachment
size : number
The size of this attachment in bytes
readonlyspoiler : boolean
Whether or not this attachment has been marked as a spoiler
The title of this attachment This will only be available if the attachment name contains special characters.
url : string
The URL to this attachment
The base64 encoded byte array representing a sampled waveform This will only be available if the attachment is an audio file.