DiscordAttachment
Documentation / @discordeno/types / DiscordAttachment
Interface: DiscordAttachment
Defined in: discord/message.ts:465
https://docs.discord.com/developers/resources/message#attachment-object-attachment-structure
Properties
content_type?
optionalcontent_type?:string
Defined in: discord/message.ts:475
The attachment's media type
description?
optionaldescription?:string
Defined in: discord/message.ts:473
description for the file (max 1024 characters)
duration_secs?
optionalduration_secs?:number
Defined in: discord/message.ts:489
The duration of the audio file for a voice message
ephemeral?
optionalephemeral?:boolean
Defined in: discord/message.ts:487
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: discord/message.ts:469
Name of file attached
flags?
optionalflags?:AttachmentFlags
Defined in: discord/message.ts:493
Attachment flags combined as a bitfield
height?
optionalheight?:number|null
Defined in: discord/message.ts:483
Height of file (if image)
id
id:
string
Defined in: discord/message.ts:467
Attachment id
proxy_url
proxy_url:
string
Defined in: discord/message.ts:481
A proxied url of file
size
size:
number
Defined in: discord/message.ts:477
Size of file in bytes
title?
optionaltitle?:string
Defined in: discord/message.ts:471
The title of the file
url
url:
string
Defined in: discord/message.ts:479
Source url of file
waveform?
optionalwaveform?:string
Defined in: discord/message.ts:491
A base64 encoded bytearray representing a sampled waveform for a voice message
width?
optionalwidth?:number|null
Defined in: discord/message.ts:485
Width of file (if image)