Attachment
@discordeno/bot • Docs
Documentation / @discordeno/bot / Attachment
Interface: Attachment
Properties
contentType?
optional
contentType:string
The attachment's media type
Defined in
packages/bot/src/transformers/types.ts:271
description?
optional
description:string
description for the file (max 1024 characters)
Defined in
packages/bot/src/transformers/types.ts:281
duration_secs?
optional
duration_secs:number
The duration of the audio file for a voice message
Defined in
packages/bot/src/transformers/types.ts:289
ephemeral?
optional
ephemeral:boolean
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.
Defined in
packages/bot/src/transformers/types.ts:287
filename
filename:
string
Name of file attached
Defined in
packages/bot/src/transformers/types.ts:267
flags?
optional
flags:AttachmentFlags
Attachment flags combined as a bitfield
Defined in
packages/bot/src/transformers/types.ts:293
height?
optional
height:number
Height of file (if image)
Defined in
packages/bot/src/transformers/types.ts:283
id
id:
bigint
Attachment id
Defined in
packages/bot/src/transformers/types.ts:279
proxyUrl
proxyUrl:
string
A proxied url of file
Defined in
packages/bot/src/transformers/types.ts:277
size
size:
number
Size of file in bytes
Defined in
packages/bot/src/transformers/types.ts:273
title?
optional
title:string
The title of the file
Defined in
packages/bot/src/transformers/types.ts:269
url
url:
string
Source url of file
Defined in
packages/bot/src/transformers/types.ts:275
waveform?
optional
waveform:string
A base64 encoded bytearray representing a sampled waveform for a voice message
Defined in
packages/bot/src/transformers/types.ts:291
width?
optional
width:number
Width of file (if image)