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