feat: server image

This commit is contained in:
2026-04-29 18:54:08 +02:00
parent 3d81c34159
commit e1ac1d1bc0
27 changed files with 1340 additions and 615 deletions

View File

@@ -18,6 +18,8 @@ export async function handleUpsertServer(command: UpsertServerCommand, dataSourc
isPrivate: server.isPrivate ? 1 : 0,
maxUsers: server.maxUsers,
currentUsers: server.currentUsers,
icon: server.icon ?? null,
iconUpdatedAt: server.iconUpdatedAt ?? 0,
slowModeInterval: server.slowModeInterval ?? 0,
createdAt: server.createdAt,
lastSeen: server.lastSeen

View File

@@ -47,6 +47,8 @@ export function rowToServer(
isPrivate: !!row.isPrivate,
maxUsers: row.maxUsers,
currentUsers: row.currentUsers,
icon: row.icon ?? undefined,
iconUpdatedAt: row.iconUpdatedAt || undefined,
slowModeInterval: relationPayload.slowModeInterval,
tags: relationPayload.tags,
channels: relationPayload.channels,

View File

@@ -86,6 +86,8 @@ export interface ServerPayload {
isPrivate: boolean;
maxUsers: number;
currentUsers: number;
icon?: string;
iconUpdatedAt?: number;
slowModeInterval?: number;
tags: string[];
channels: ServerChannelPayload[];