Skip to main content

FileContent

Documentation


Documentation / @discordeno/types / FileContent

Interface: FileContent

Defined in: discordeno/reference.ts:13

This is not a mapping of any discord documented type, however there is some docs that refer to an object like this: https://docs.discord.com/developers/reference#uploading-files, the second paragraph

All files[n] parameters must include a valid Content-Disposition subpart header with a filename and unique name parameter.

The blob maps to the FormData data sent and the name maps to the FormData file name.

See

https://developer.mozilla.org/en-US/docs/Web/API/FormData/set

Properties

blob

blob: Blob

Defined in: discordeno/reference.ts:15

The file blob


name

name: string

Defined in: discordeno/reference.ts:17

The name of the file