Skip to main content

DiscordAttachment

@discordeno/bot


Documentation / @discordeno/bot / DiscordAttachment

Interface: DiscordAttachment

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

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:420

The attachment's media type


description?

optional description: string

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

description for the file (max 1024 characters)


duration_secs?

optional duration_secs: number

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

The duration of the audio file for a voice message


ephemeral?

optional ephemeral: boolean

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

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:416

Name of file attached


flags?

optional flags: AttachmentFlags

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

Attachment flags combined as a bitfield


height?

optional height: null | number

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

Height of file (if image)


id

id: string

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

Attachment id


proxy_url

proxy_url: string

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

A proxied url of file


size

size: number

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

Size of file in bytes


title?

optional title: string

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

The title of the file


url

url: string

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

Source url of file


waveform?

optional waveform: string

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

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:434

Width of file (if image)