Skip to content
Interfacecorev0.10.0

WebhookFile

A file attached to a webhook report.

interface WebhookFile extends ReplyFile

data

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

readonly data: Uint8Array

Inherited from:ReplyFile

description

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

Inherited from:ReplyFile

title

A display title Discord shows in place of the filename.

readonly title?: string

Inherited from:ReplyFile