fix(types): Fix discordeno/reference.ts (#4363)

* fix(types): Fix discordeno/reference.ts

* Apply suggestions from code review

---------

Co-authored-by: Link <link20050703@gmail.com>
This commit is contained in:
Fleny
2025-08-15 20:15:31 +02:00
committed by GitHub
parent 8b41c9fe24
commit 0c0ff4e07a

View File

@@ -1,5 +1,15 @@
/** Types for: https://discord.com/developers/docs/reference */
/**
* This is not a mapping of any discord documented type, however there is some docs that refer to an object like this:
* https://discord.com/developers/docs/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 {@link https://developer.mozilla.org/en-US/docs/Web/API/FormData/set}
*/
export interface FileContent {
/** The file blob */
blob: Blob