Skip to main content

DiscordAttachment

@discordeno/bot


Documentation / @discordeno/bot / DiscordAttachment

Interface: DiscordAttachment

Defined in: packages/types/dist/types/discord/message.d.ts:417

https://discord.com/developers/docs/resources/message#attachment-object-attachment-structure

Properties

content_type?

optional content_type: string

Defined in: packages/types/dist/types/discord/message.d.ts:423

The attachment's media type


description?

optional description: string

Defined in: packages/types/dist/types/discord/message.d.ts:433

description for the file (max 1024 characters)


duration_secs?

optional duration_secs: number

Defined in: packages/types/dist/types/discord/message.d.ts:441

The duration of the audio file for a voice message


ephemeral?

optional ephemeral: boolean

Defined in: packages/types/dist/types/discord/message.d.ts:439

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: packages/types/dist/types/discord/message.d.ts:419

Name of file attached


flags?

optional flags: AttachmentFlags

Defined in: packages/types/dist/types/discord/message.d.ts:445

Attachment flags combined as a bitfield


height?

optional height: null | number

Defined in: packages/types/dist/types/discord/message.d.ts:435

Height of file (if image)


id

id: string

Defined in: packages/types/dist/types/discord/message.d.ts:431

Attachment id


proxy_url

proxy_url: string

Defined in: packages/types/dist/types/discord/message.d.ts:429

A proxied url of file


size

size: number

Defined in: packages/types/dist/types/discord/message.d.ts:425

Size of file in bytes


title?

optional title: string

Defined in: packages/types/dist/types/discord/message.d.ts:421

The title of the file


url

url: string

Defined in: packages/types/dist/types/discord/message.d.ts:427

Source url of file


waveform?

optional waveform: string

Defined in: packages/types/dist/types/discord/message.d.ts:443

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


width?

optional width: null | number

Defined in: packages/types/dist/types/discord/message.d.ts:437

Width of file (if image)