interface RESTAPIAttachment

export interface RESTAPIAttachment

This structure is used in Message Create and Edit requests to set which attachments are in the message and provide their metadata.When editing, you must provide the id of each file to keep, and you can optionally update the description and is_spoiler fields of existing attachments.

See also: https://docs.discord.com/developers/resources/message#attachment-object-attachment-request-structure

optional
description? : string | undefined

Description (alt text) for the file (max 1024 characters)

optional
duration_secs? : number | undefined

The duration of the audio or video file (required for voice messages)

optional
filename? : string | undefined

Name of file attached

Attachment id, for new attachments this must match the n in files[n]

optional
is_spoiler? : boolean | undefined

Whether the attachment should be marked as a spoiler and blurred until clicked, this sets the IS_SPOILER attachment flag

optional
title? : string | undefined

The title of the file

optional
waveform? : string | undefined

Base64 encoded bytearray representing a sampled waveform (required for voice messages)