Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ import {
RE_SPOILER,
} from "./lib/regex.js";

export type Tag = "attachments" | "avatars" | "backgrounds" | "icons" | "banners" | "emojis";

export type Session = { _id: string; token: string; user_id: string } | string;

/**
Expand Down Expand Up @@ -555,9 +557,10 @@ export class Client extends AsyncEventEmitter<Events> {
* @param tag Tag
* @param file File
* @param uploadUrl Media server upload route
* @returns File ID
*/
async uploadFile(
tag: string,
tag: Tag,
file: File,
uploadUrl?: string,
): Promise<string> {
Expand Down