Class

AttachmentMeta

Attachment metadata for message payloads (file bytes sent separately). Prefer AttachmentBuilder when attaching file data via files: [builder].

Constructor

new AttachmentMeta(id: number, filename: string, options?: Partial<AttachmentPayloadOptions>)
id
number
filename
string
options?
Partial<AttachmentPayloadOptions>

Properties

NameTypeDescription
description?string | nullAlt text / description for accessibility.
filenamestringFilename (may be prefixed with SPOILER_ if spoiler is true).
idread-onlynumberAttachment ID (index in files array).
spoilerbooleanWhether this attachment should be hidden until clicked.

Methods