Preview environment

interface APIAttachment

export interface APIAttachment

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

optional
content_type? : string

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

optional
description? : string

Description for the file

optional
duration_secs? : number

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

optional
ephemeral? : boolean

Whether this attachment is ephemeral

filename : string

Name of file attached

optional
flags? : AttachmentFlags

Attachment flags combined as a bitfield

optional
height? : number | null

Height of file (if image)

Attachment id

proxy_url : string

A proxied url of file

size : number

Size of file in bytes

optional
title? : string

The title of the file

url : string

Source url of file

optional
waveform? : string

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

optional
width? : number | null

Width of file (if image)