-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnative.ts
More file actions
37 lines (31 loc) · 1011 Bytes
/
Copy pathnative.ts
File metadata and controls
37 lines (31 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* Vencord, a Discord client mod
* Copyright (c) 2026 Vendicated and contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import { catboxUpload } from "./services/catbox";
import { litterboxUpload } from "./services/litterbox";
import { uguuUpload } from "./services/uguu";
import { ziplineUpload } from "./services/zipline";
export interface UploadData {
name: string;
type: string;
data: Uint8Array;
}
export async function fetchNativeUguu(_event: unknown, upload: UploadData) {
return await uguuUpload(upload);
}
export async function fetchNativeCatbox(_event: unknown, upload: UploadData) {
return await catboxUpload(upload);
}
export async function fetchNativeLitterbox(_event: unknown, upload: UploadData) {
return await litterboxUpload(upload);
}
export async function fetchNativeZipline(
_event: unknown,
upload: UploadData,
ziplineServer: string,
ziplineToken: string
) {
return await ziplineUpload(upload, ziplineServer, ziplineToken);
}