Skip to content
Interfacetypesv0.14.4

ReplyFile

Bytes to upload with a reply. A reply attaching only these files sends on either transport.

interface ReplyFile

data

The file's bytes. A node Buffer assigns here because it extends Uint8Array.

readonly data: Uint8Array

description

Alt text shown to screen readers and on hover.

readonly description?: string

name

The filename Discord shows, and the name an attachment:// component reference resolves against. Prefix it with SPOILER_ to blur the attachment until the viewer clicks through.

readonly name: string

title

A display title Discord shows in place of the filename.

readonly title?: string