mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
fix(types/channel): change FileContent.blob type to Blob (#509)
* fix(types/channel): change FileContent.blob type to Blob * idk * change to blob * idk
This commit is contained in:
@@ -166,7 +166,7 @@ function createRequestBody(body: any, method: RequestMethods) {
|
||||
|
||||
body.file.map((file: FileContent, index: number) =>
|
||||
// The key of the form data item must be unique; otherwise, Discordeno only considers the first item in the form data with the same names
|
||||
form.append(`file${index + 1}`, file.blob as Blob, file.name)
|
||||
form.append(`file${index + 1}`, file.blob, file.name)
|
||||
);
|
||||
|
||||
form.append("payload_json", JSON.stringify({ ...body, file: undefined }));
|
||||
|
||||
Reference in New Issue
Block a user