feat: Implement core Discord features including members list, direct messages, user presence, authentication, and chat UI.
Some checks failed
Build and Release / build-and-release (push) Has been cancelled

This commit is contained in:
Bryan1029384756
2026-02-11 04:36:40 -06:00
parent a29858fd32
commit cb4361da1a
32 changed files with 2051 additions and 144 deletions

View File

@@ -17,6 +17,7 @@ import type * as gifs from "../gifs.js";
import type * as invites from "../invites.js";
import type * as members from "../members.js";
import type * as messages from "../messages.js";
import type * as presence from "../presence.js";
import type * as reactions from "../reactions.js";
import type * as roles from "../roles.js";
import type * as typing from "../typing.js";
@@ -39,6 +40,7 @@ declare const fullApi: ApiFromModules<{
invites: typeof invites;
members: typeof members;
messages: typeof messages;
presence: typeof presence;
reactions: typeof reactions;
roles: typeof roles;
typing: typeof typing;
@@ -72,4 +74,67 @@ export declare const internal: FilterApi<
FunctionReference<any, "internal">
>;
export declare const components: {};
export declare const components: {
presence: {
public: {
disconnect: FunctionReference<
"mutation",
"internal",
{ sessionToken: string },
null
>;
heartbeat: FunctionReference<
"mutation",
"internal",
{
interval?: number;
roomId: string;
sessionId: string;
userId: string;
},
{ roomToken: string; sessionToken: string }
>;
list: FunctionReference<
"query",
"internal",
{ limit?: number; roomToken: string },
Array<{
data?: any;
lastDisconnected: number;
online: boolean;
userId: string;
}>
>;
listRoom: FunctionReference<
"query",
"internal",
{ limit?: number; onlineOnly?: boolean; roomId: string },
Array<{ lastDisconnected: number; online: boolean; userId: string }>
>;
listUser: FunctionReference<
"query",
"internal",
{ limit?: number; onlineOnly?: boolean; userId: string },
Array<{ lastDisconnected: number; online: boolean; roomId: string }>
>;
removeRoom: FunctionReference<
"mutation",
"internal",
{ roomId: string },
null
>;
removeRoomUser: FunctionReference<
"mutation",
"internal",
{ roomId: string; userId: string },
null
>;
updateRoomUser: FunctionReference<
"mutation",
"internal",
{ data?: any; roomId: string; userId: string },
null
>;
};
};
};