AttachmentInput

interface AttachmentInput

Raw file data to upload as a message attachment. Supply the binary content as an ArrayBuffer along with a display name. The optional MIME type lets you override Discord’s auto-detection.

exported from lib.weeble.d

Properties

Property

Type

Description

contentType?

string

MIME type of the file. When omitted Discord attempts to detect it.

data

ArrayBuffer

Raw binary data of the file.

fileName

string

The file name visible to recipients.

spoiler?

boolean

Indicates whether the attachment should be marked as a spoiler.