Skip to main content

DiscordAttachment

Documentation


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?

optional content_type?: string

Defined in: discord/message.ts:475

The attachment's media type


description?

optional description?: string

Defined in: discord/message.ts:473

description for the file (max 1024 characters)


duration_secs?

optional duration_secs?: number

Defined in: discord/message.ts:489

The duration of the audio file for a voice message


ephemeral?

optional ephemeral?: 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?

optional flags?: AttachmentFlags

Defined in: discord/message.ts:493

Attachment flags combined as a bitfield


height?

optional height?: 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?

optional title?: 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?

optional waveform?: string

Defined in: discord/message.ts:491

A base64 encoded bytearray representing a sampled waveform for a voice message


width?

optional width?: number | null

Defined in: discord/message.ts:485

Width of file (if image)