APIAttachment
Index
Properties
optionalapplication
For Clips, the application in the stream, if recognized
optionalclip_created_at
For Clips, when the clip was created
optionalclip_participants
For Clips, array of users who were in the stream
optionalcontent_type
The attachment's media type
optionaldescription
Description (alt text) for the file (max 1024 characters)
optionalduration_secs
The duration of the audio file (currently for voice messages)
optionalephemeral
Whether this attachment is ephemeral
filename
Name of file attached
optionalflags
Attachment flags combined as a bitfield
optionalheight
Height of file (if image or video)
id
Attachment id
optionalplaceholder
ThumbHash placeholder (if image or video)
optionalplaceholder_version
Version of the placeholder (if image or video)
proxy_url
A proxied url of file
size
Size of file in bytes
optionaltitle
The original filename of the upload with special characters preserved
This 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
Source url of file
optionalwaveform
Base64 encoded bytearray representing a sampled waveform (currently for voice messages)
optionalwidth
Width of file (if image or video)
https://discord.com/developers/docs/resources/message#attachment-object-attachment-structure