APIAttachment
https://discord.com/developers/docs/resources/channel#attachment-object-attachment-structure
Signature
export interface APIAttachmentProperties
14Methods
0No methods.
Properties
id: Snowflake;Attachment id
filename: string;Name of file attached
title?: string;The title of the file
description?: string;Description for the file
content_type?: string;The attachment's media type See https://en.wikipedia.org/wiki/Media_type
size: number;Size of file in bytes
url: string;Source url of file
proxy_url: string;A proxied url of file
height?: number | null;Height of file (if image)
width?: number | null;Width of file (if image)
ephemeral?: boolean;Whether this attachment is ephemeral
duration_secs?: number;The duration of the audio file (currently for voice messages)
waveform?: string;Base64 encoded bytearray representing a sampled waveform (currently for voice messages)
flags?: AttachmentFlags;Attachment flags combined as a bitfield