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
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/channel#attachment-object-attachment-structure