mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 00:40:07 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user