Attachment
Documentation / @discordeno/bot / Attachment
Interface: Attachment
Defined in: packages/bot/src/transformers/types.ts:264
Properties
contentType?
optional
contentType:string
Defined in: packages/bot/src/transformers/types.ts:270
The attachment's media type
description?
optional
description:string
Defined in: packages/bot/src/transformers/types.ts:280
description for the file (max 1024 characters)
duration_secs?
optional
duration_secs:number
Defined in: packages/bot/src/transformers/types.ts:288
The duration of the audio file for a voice message
ephemeral?
optional
ephemeral:boolean
Defined in: packages/bot/src/transformers/types.ts:286
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: packages/bot/src/transformers/types.ts:266
Name of file attached
flags?
optional
flags:AttachmentFlags
Defined in: packages/bot/src/transformers/types.ts:292
Attachment flags combined as a bitfield
height?
optional
height:number
Defined in: packages/bot/src/transformers/types.ts:282
Height of file (if image)
id
id:
bigint
Defined in: packages/bot/src/transformers/types.ts:278
Attachment id
proxyUrl
proxyUrl:
string
Defined in: packages/bot/src/transformers/types.ts:276
A proxied url of file
size
size:
number
Defined in: packages/bot/src/transformers/types.ts:272
Size of file in bytes
title?
optional
title:string
Defined in: packages/bot/src/transformers/types.ts:268
The title of the file
url
url:
string
Defined in: packages/bot/src/transformers/types.ts:274
Source url of file
waveform?
optional
waveform:string
Defined in: packages/bot/src/transformers/types.ts:290
A base64 encoded bytearray representing a sampled waveform for a voice message
width?
optional
width:number
Defined in: packages/bot/src/transformers/types.ts:284
Width of file (if image)