export class Attachment
Represents an attachment
The media (MIME) type of this attachment
See also: https://developer.mozilla.org/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_typesundefined
The duration of this attachment in seconds This will only be available if the attachment is an audio file.
boolean ephemeral :
Whether this attachment is ephemeral
AttachmentFlagsBitField flags :
The flags of this attachment
Snowflake id :
The attachment's id
string name :
The name of this attachment
string proxyURL :
The Proxy URL to this attachment
number size :
The size of this attachment in bytes
readonlyboolean spoiler :
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.
string url :
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.