Skip to main content

DiscordAttachment

@discordeno/bot


Documentation / @discordeno/bot / DiscordAttachment

Interface: DiscordAttachment

Defined in: packages/types/dist/types/discord.d.ts:646

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

Properties

content_type?

optional content_type: string

Defined in: packages/types/dist/types/discord.d.ts:652

The attachment's media type


description?

optional description: string

Defined in: packages/types/dist/types/discord.d.ts:662

description for the file (max 1024 characters)


duration_secs?

optional duration_secs: number

Defined in: packages/types/dist/types/discord.d.ts:670

The duration of the audio file for a voice message


ephemeral?

optional ephemeral: boolean

Defined in: packages/types/dist/types/discord.d.ts:668

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.d.ts:648

Name of file attached


flags?

optional flags: AttachmentFlags

Defined in: packages/types/dist/types/discord.d.ts:674

Attachment flags combined as a bitfield


height?

optional height: null | number

Defined in: packages/types/dist/types/discord.d.ts:664

Height of file (if image)


id

id: string

Defined in: packages/types/dist/types/discord.d.ts:660

Attachment id


proxy_url

proxy_url: string

Defined in: packages/types/dist/types/discord.d.ts:658

A proxied url of file


size

size: number

Defined in: packages/types/dist/types/discord.d.ts:654

Size of file in bytes


title?

optional title: string

Defined in: packages/types/dist/types/discord.d.ts:650

The title of the file


url

url: string

Defined in: packages/types/dist/types/discord.d.ts:656

Source url of file


waveform?

optional waveform: string

Defined in: packages/types/dist/types/discord.d.ts:672

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


width?

optional width: null | number

Defined in: packages/types/dist/types/discord.d.ts:666

Width of file (if image)