interface APIAttachment

external
export interface APIAttachment

https://discord.com/developers/docs/resources/message#attachment-object-attachment-structure

optionalexternal
content_type? : string

The attachment's media typeSee https://en.wikipedia.org/wiki/Media_type

optionalexternal
description? : string

Description for the file

optionalexternal
duration_secs? : number

The duration of the audio file (currently for voice messages)

optionalexternal
ephemeral? : boolean

Whether this attachment is ephemeral

external
filename : string

Name of file attached

optionalexternal
flags? : AttachmentFlags

Attachment flags combined as a bitfield

optionalexternal
height? : number | null

Height of file (if image)

external
id : Snowflake

Attachment id

external
proxy_url : string

A proxied url of file

external
size : number

Size of file in bytes

optionalexternal
title? : string

The title of the file

external
url : string

Source url of file

optionalexternal
waveform? : string

Base64 encoded bytearray representing a sampled waveform (currently for voice messages)

optionalexternal
width? : number | null

Width of file (if image)