Interface
APIMessageAttachment
File attachment on a message.
Properties
content_hash
?: string | nullHash of attachment content for integrity checks.
content_type
?: string | nullMIME type when known.
description
?: string | nullAlt text / caption for accessibility.
duration
?: number | nullDuration in seconds for audio/video.
expired
?: boolean | nullWhether the attachment URL has expired.
expires_at
?: string | nullISO-8601 timestamp when the attachment URL expires.
filename
: stringOriginal filename.
flags
?: number | nullMessageAttachmentFlags bitfield (e.g. IS_SPOILER).
height
?: number | nullPixel height for images/videos.
id
: SnowflakeAttachment ID (snowflake).
nsfw
?: boolean | nullWhether the attachment is NSFW.
placeholder
?: string | nullBase64 placeholder for lazy loading.
proxy_url
?: string | nullCDN proxy URL.
size
: numberFile size in bytes.
title
?: string | nullDisplay title (if different from filename).
url
?: string | nullCDN URL to download the file.
waveform
?: string | nullBase64 audio waveform for voice messages.
width
?: number | nullPixel width for images/videos.