APIAttachment
Index
Properties
optionalcontent_type
The attachment's media type
optionaldescription
Description for the file
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)
id
Attachment id
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)
https://discord.com/developers/docs/resources/message#attachment-object-attachment-structure