export interface APIAttachmentSee also: https://discord.com/developers/docs/resources/message#attachment-object-attachment-structure
optionalapplication? : APIApplication | null
For Clips, the application in the stream, if recognized
optionalclip_created_at? : string
For Clips, when the clip was created
optionalclip_participants? : APIUser[]
For Clips, array of users who were in the stream
optionalcontent_type? : string
The attachment's media type
See also: https://en.wikipedia.org/wiki/Media_type
optionaldescription? : string
Description (alt text) for the file (max 1024 characters)
optionalduration_secs? : number
The duration of the audio file (currently for voice messages)
optionalephemeral? : boolean
Whether this attachment is ephemeral
filename : string
Name of file attached
optionalflags? : AttachmentFlags
Attachment flags combined as a bitfield
id : Snowflake
Attachment id
optionalplaceholder_version? : number
Version of the placeholder (if image or video)
optionalplaceholder? : string
ThumbHash placeholder (if image or video)
See also: https://evanw.github.io/thumbhash/
proxy_url : string
A proxied url of file
size : number
Size of file in bytes
optionaltitle? : string
The original filename of the upload with special characters preservedThis will be present when the filename contains special characters (e.g. Cyrillic), in which case the filename field will be a sanitized version without those characters
url : string
Source url of file
optionalwaveform? : string
Base64 encoded bytearray representing a sampled waveform (currently for voice messages)