feat: enhance EventMetadata interface and improve user data handling in recording process

This commit is contained in:
MythEclipse
2026-05-13 04:06:37 +07:00
parent aa85dd9beb
commit 6e67da2192
3 changed files with 190 additions and 54 deletions

View File

@@ -8,6 +8,16 @@ interface EventMetadata {
userId: string;
username: string;
tag: string;
displayName?: string;
avatarUrl?: string;
bot?: boolean;
roles?: Array<{ id: string; name: string; position: number }>;
highestRole?: { id: string; name: string; position: number } | null;
joinedTimestamp?: number | null;
sessionId?: string;
sessionStartTime?: number;
segmentIndex?: number;
segmentMs?: number;
startTime: number;
endTime: number;
durationMs: number;