Skip to main content

Attachment

Documentation


Documentation / @discordeno/bot / Attachment

Interface: Attachment

Defined in: transformers/types.ts:324

Properties​

application?​

optional application?: Application

Defined in: transformers/types.ts:362

for Clips, the application in the stream, if recognized


clipCreatedAt?​

optional clipCreatedAt?: string

Defined in: transformers/types.ts:360

for Clips, when the clip was created. ISO8601 timestamp


clipParticipants?​

optional clipParticipants?: User[]

Defined in: transformers/types.ts:358

for Clips, array of users who were in the stream


contentType?​

optional contentType?: string

Defined in: transformers/types.ts:330

The attachment's media type


description?​

optional description?: string

Defined in: transformers/types.ts:340

description for the file (max 1024 characters)


duration_secs?​

optional duration_secs?: number

Defined in: transformers/types.ts:352

The duration of the audio file for a voice message


ephemeral?​

optional ephemeral?: boolean

Defined in: transformers/types.ts:350

whether this attachment is ephemeral. Ephemeral attachments will automatically be removed after a set period of time. Ephemeral attachments on messages are guaranteed to be available as long as the message itself exists.


filename​

filename: string

Defined in: transformers/types.ts:326

Name of file attached


flags?​

optional flags?: AttachmentFlags

Defined in: transformers/types.ts:356

Attachment flags combined as a bitfield


height?​

optional height?: number

Defined in: transformers/types.ts:342

Height of file (if image or video)


id​

id: bigint

Defined in: transformers/types.ts:338

Attachment id


placeholder?​

optional placeholder?: string

Defined in: transformers/types.ts:346

Thumbhash placeholder (if image or video)


placeholderVersion?​

optional placeholderVersion?: number

Defined in: transformers/types.ts:348

Version of the placeholder (if image or video)


proxyUrl​

proxyUrl: string

Defined in: transformers/types.ts:336

A proxied url of file


size​

size: number

Defined in: transformers/types.ts:332

Size of file in bytes


title?​

optional title?: string

Defined in: transformers/types.ts:328

The title of the file


url​

url: string

Defined in: transformers/types.ts:334

Source url of file


waveform?​

optional waveform?: string

Defined in: transformers/types.ts:354

A base64 encoded bytearray representing a sampled waveform for a voice message


width?​

optional width?: number

Defined in: transformers/types.ts:344

Width of file (if image or video)