DiscordAttachment
@discordeno/bot • Docs
Documentation / @discordeno/bot / DiscordAttachment
Interface: DiscordAttachment
https://discord.com/developers/docs/resources/channel#attachment-object
Properties
content_type?
optional
content_type:string
The attachment's media type
Defined in
packages/types/dist/types/discord.d.ts:649
description?
optional
description:string
description for the file (max 1024 characters)
Defined in
packages/types/dist/types/discord.d.ts:659
duration_secs?
optional
duration_secs:number
The duration of the audio file for a voice message
Defined in
packages/types/dist/types/discord.d.ts:667
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/types/dist/types/discord.d.ts:665
filename
filename:
string
Name of file attached
Defined in
packages/types/dist/types/discord.d.ts:645
flags?
optional
flags:AttachmentFlags
Attachment flags combined as a bitfield
Defined in
packages/types/dist/types/discord.d.ts:671
height?
optional
height:null
|number
Height of file (if image)
Defined in
packages/types/dist/types/discord.d.ts:661
id
id:
string
Attachment id
Defined in
packages/types/dist/types/discord.d.ts:657
proxy_url
proxy_url:
string
A proxied url of file
Defined in
packages/types/dist/types/discord.d.ts:655
size
size:
number
Size of file in bytes
Defined in
packages/types/dist/types/discord.d.ts:651
title?
optional
title:string
The title of the file
Defined in
packages/types/dist/types/discord.d.ts:647
url
url:
string
Source url of file
Defined in
packages/types/dist/types/discord.d.ts:653
waveform?
optional
waveform:string
A base64 encoded bytearray representing a sampled waveform for a voice message
Defined in
packages/types/dist/types/discord.d.ts:669
width?
optional
width:null
|number
Width of file (if image)
Defined in
packages/types/dist/types/discord.d.ts:663